-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[None][doc] Add labels description note into llm api section #7696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[None][doc] Add labels description note into llm api section #7696
Conversation
📝 WalkthroughWalkthroughAdds a collapsible Sphinx note describing endpoint/parameter status labels to generate_llmapi() and removes an extra blank line emitted after autoclass options. No public APIs or exported declarations were modified. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Developer
participant Helper as helper.generate_llmapi()
participant RST as Generated RST
participant Sphinx as Sphinx Builder
participant Docs as HTML Docs
Dev->>Helper: Run generate_llmapi()
Helper->>RST: Emit API Reference content
Note over Helper,RST #D6EAF8: New: prepend collapsible status-label note\n(labels: prototype, beta, deprecated, none)
Helper->>RST: Emit autoclass options (removed extra blank line)
RST->>Sphinx: Build docs
Sphinx->>Docs: Render with status-note included
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (4)
docs/source/helper.py (4)
315-318: Replace ambiguous Unicode spaces/hyphen with ASCII.Ruff flags NARROW NO‑BREAK SPACE and NON‑BREAKING HYPHEN. Use plain spaces and
-.Apply:
- content += " Since version 1.0, we attach a status label to every API endpoint and every parameter.\n\n" - content += " 1. `prototype` the item is still in the prototype‑development stage.\n" - content += " 2. `beta` the item is approaching completion.\n" - content += " 3. `deprecated` the item is deprecated.\n" + content += " Since version 1.0, we attach a status label to every API endpoint and every parameter.\n\n" + content += " 1. `prototype` the item is still in the prototype-development stage.\n" + content += " 2. `beta` the item is approaching completion.\n" + content += " 3. `deprecated` the item is deprecated.\n"
319-319: Fix list numbering (“3.” repeats).Use “4.” for the last item (or switch to auto-enumeration with
#.).Apply:
- content += " 3. `No label` the item is already stable.\n" + content += " 4. `No label` the item is already stable.\n"
313-321: Optional: Use a single triple‑quoted block for readability and fewer off‑by‑whitespace risks.Keeps content maintainable and reduces chances of rST formatting errors.
Example:
- content += ".. note::\n" - content += " :class: dropdown\n" - content += "\n" - content += " Since version 1.0, we attach a status label to every API endpoint and every parameter.\n\n" - content += " 1. `prototype` the item is still in the prototype-development stage.\n" - content += " 2. `beta` the item is approaching completion.\n" - content += " 3. `deprecated` the item is deprecated.\n" - content += " 4. `No label` the item is already stable.\n" - content += "\n" + content += ( + ".. note::\n" + " :class: dropdown\n" + "\n" + " Since version 1.0, we attach a status label to every API endpoint and every parameter.\n\n" + " 1. `prototype` the item is still in the prototype-development stage.\n" + " 2. `beta` the item is approaching completion.\n" + " 3. `deprecated` the item is deprecated.\n" + " 4. `No label` the item is already stable.\n" + "\n" + )
1-1: Missing NVIDIA Apache‑2.0 header (2025).Guidelines require the header atop all .py files.
Apply:
+# Copyright (c) 2025, NVIDIA CORPORATION. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import logging
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
docs/source/helper.py(1 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
**/*.{h,hpp,hh,hxx,cpp,cxx,cc,cu,cuh,py}
📄 CodeRabbit inference engine (CODING_GUIDELINES.md)
Use only spaces, no tabs; indent with 4 spaces.
Files:
docs/source/helper.py
**/*.py
📄 CodeRabbit inference engine (CODING_GUIDELINES.md)
**/*.py: Python code must target Python 3.8+.
Indent Python code with 4 spaces; do not use tabs.
Maintain module namespace when importing; prefer 'from package.subpackage import foo' then 'foo.SomeClass()' instead of importing the class directly.
Python filenames should be snake_case (e.g., some_file.py).
Python classes use PascalCase names.
Functions and methods use snake_case names.
Local variables use snake_case; prefix 'k' for variables that start with a number (e.g., k_99th_percentile).
Global variables use upper SNAKE_CASE prefixed with 'G' (e.g., G_MY_GLOBAL).
Constants use upper SNAKE_CASE (e.g., MY_CONSTANT).
Avoid shadowing variables from an outer scope.
Initialize all externally visible members of a class in the constructor.
Prefer docstrings for interfaces that may be used outside a file; comments for in-function or file-local interfaces.
Use Google-style docstrings for classes and functions (Sphinx-parsable).
Document attributes and variables inline so they render under the class/function docstring.
Avoid reflection when a simpler, explicit approach suffices (e.g., avoid dict(**locals()) patterns).
In try/except, catch the most specific exceptions possible.
For duck-typing try/except, keep the try body minimal and use else for the main logic.
Files:
docs/source/helper.py
**/*.{cpp,cxx,cc,h,hpp,hh,hxx,cu,cuh,py}
📄 CodeRabbit inference engine (CODING_GUIDELINES.md)
Prepend the NVIDIA Apache-2.0 copyright header with current year to the top of all source files (e.g., .cpp, .h, .cu, .py).
Files:
docs/source/helper.py
🪛 Ruff (0.12.2)
docs/source/helper.py
315-315: String contains ambiguous (NARROW NO-BREAK SPACE). Did you mean (SPACE)?
(RUF001)
316-316: String contains ambiguous (NARROW NO-BREAK SPACE). Did you mean (SPACE)?
(RUF001)
316-316: String contains ambiguous ‑ (NON-BREAKING HYPHEN). Did you mean - (HYPHEN-MINUS)?
(RUF001)
317-317: String contains ambiguous (NARROW NO-BREAK SPACE). Did you mean (SPACE)?
(RUF001)
318-318: String contains ambiguous (NARROW NO-BREAK SPACE). Did you mean (SPACE)?
(RUF001)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Pre-commit Check
cad6f8a to
4d2d627
Compare
|
/bot run |
|
PR_Github #18514 [ run ] triggered by Bot |
|
PR_Github #18514 [ run ] completed with state |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
4d2d627 to
2456c6c
Compare
|
/bot skip --comment "doc build already pass" |
|
PR_Github #18565 [ skip ] triggered by Bot |
|
PR_Github #18565 [ skip ] completed with state |
2456c6c to
742af96
Compare
Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com>
742af96 to
4dc8723
Compare
|
/bot skip --comment "doc build already pass" |
|
PR_Github #18578 [ skip ] triggered by Bot |
|
PR_Github #18578 [ skip ] completed with state |
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
…7696) Signed-off-by: nv-guomingz <137257613+nv-guomingz@users.noreply.github.com> Signed-off-by: Wangshanshan <30051912+dominicshanshan@users.noreply.github.com>
Add note section to describe beta/prototype/deprecated label's meaning for LLM API reference
Summary by CodeRabbit
Documentation
Chores