cp: docs: Hardcode docs github url (1328) into r0.4.0#1331
Conversation
Signed-off-by: Charlie Truong <chtruong@nvidia.com> Signed-off-by: NeMo Bot <nemo-bot@nvidia.com>
📝 WalkthroughWalkthroughReplaced dynamic repository URL resolution in docs/conf.py’s _GitHubLinkTransform.apply with a hardcoded GitHub URL ("https://github.com/NVIDIA-NeMo/RL"), keeping existing try/except and link construction logic intact. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
docs/conf.py (1)
173-189: Remove or document the unused_get_github_source_urlmethod.This method is no longer called anywhere in the codebase after the hardcoded URL change. If the hardcoding at line 196 is temporary and this method will be used again, add a comment explaining that. Otherwise, remove the method to avoid maintaining dead code.
To verify this method is unused elsewhere:
#!/bin/bash # Description: Verify _get_github_source_url is not called from other files # Search for calls to _get_github_source_url rg -n --type=py '_get_github_source_url' -g '!docs/conf.py'
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
docs/conf.py(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.py
📄 CodeRabbit inference engine (CODING_GUIDELINES.md)
**/*.py: Follow the Google Python Style Guide for all Python code
Target Python 3.12+ for all Python code in NeMo-RL
Indent Python code with 4 spaces; do not use tabs
Python filenames should be snake_case (e.g., some_file.py)
Class names should be PascalCase
Function and method names should be snake_case
Local variable names should be snake_case; if starting with a number, prefix with k (e.g., k_99th_percentile)
Global variables should be UPPER_SNAKE_CASE and prefixed with G_ (e.g., G_MY_GLOBAL)
Constants should be UPPER_SNAKE_CASE
Avoid shadowing variables declared in an outer scope
Initialize all externally visible members of a class in the constructor
For public interfaces used outside a file, prefer docstrings over comments
Use comments mainly for code within a function or interfaces local to a file
Commented-out code must include a nearby comment explaining usage and why it is commented out; otherwise remove before merging
Use Google-style docstrings for classes and functions (Sphinx-parseable)
Avoid using reflection when functionality can be easily achieved without it
Limit except clauses to the smallest specific set of exceptions possible
For duck-typing via try/except, keep the try body minimal and use else for main logic
Add the NVIDIA copyright header (with current year) at the top of all Python files, excluding tests/ and test-only scripts
Files:
docs/conf.py
⏰ 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). (5)
- GitHub Check: Lint check
- GitHub Check: Lint check
- GitHub Check: Lint check
- GitHub Check: Post submodule check comment / Comment on PR
- GitHub Check: Post automodel integration comment / Comment on PR
🔇 Additional comments (1)
docs/conf.py (1)
194-196: Clarify the temporary nature and tracking for this workaround.The hardcoded URL is correct and the logic works as expected. However, the comment indicates this is a temporary workaround ("for now"), but doesn't provide clear tracking or criteria for when it might be reverted.
Per the coding guidelines, commented-out code should include more complete documentation. Consider either:
- Creating a tracking issue/TODO and referencing it in the comment
- Removing the commented-out line if this change is intended to be permanent
- Adding more detail about the specific build environment errors and when reverting would be safe
As per coding guidelines.
beep boop [🤖]: Hi @chtruong814 👋,
Summary by CodeRabbit