You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[doc-only] Pin bindings links in versioned CUDA Python docs - #3641
The archived CUDA Python 12.9.11 docs link to the shared bindings latest page, which currently serves CUDA 13. 12.9.11 metapackage docs
Use the matching bindings archive for the cuda.bindings menu and body links in new metapackage release builds. The Sphinx config computes the destination once from the existing build mode and archive version, then supplies it to the inline reference and the index toctree. Main and preview builds use the shared latest destination.
Validation
Rendered the metapackage docs locally in CUDA 12 and CUDA 13 release modes, main mode, and preview mode. Verified every cuda.bindings link on the landing page and a release-note subpage. The original source reproduced the wrong destination in the same CUDA 12 release-mode build. Pre-commit passed for both changed files. The repository-wide run passed all applicable hooks except the authored-docs link check, which received HTTP 503 from GitHub for an existing Pathfinder release-note link.
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
Documentation
Release documentation now links to the matching version of the CUDA Bindings documentation, keeping navigation and inline references consistent.
Non-release documentation continues to link to the latest CUDA Bindings documentation.
The documentation configuration now selects the CUDA Bindings URL based on IS_RELEASE. Release builds also replace the latest URL in the index toctree with the selected URL.
Changes: Bindings documentation URLs
Layer / File(s)
Summary
Bindings URL selection and toctree update cuda_python/docs/source/conf.py, cuda_python/docs/source/index.rst
The configuration selects the release or latest URL from IS_RELEASE and uses it for the cuda.bindings reference. On release builds, a source-read handler checks for the expected latest entry in index and replaces its first occurrence. The comment documents this behavior.
Suggested reviewers:leofang, mdboom
Change: Bug fix
Merge Risk: Minimal · up to d87a5
This change makes versioned release documentation link to the matching cuda.bindings archive instead of the shared latest page. Main and preview builds keep the latest link. No merge-blocking risk was found.
Architecture risk: Low · up to d87a5
The change affects 1 source area.
Changed areas:cuda_python
Review details
Systems and components
observed — 2 changed files mapped to cuda_python.
Before / after behavior
observed — Modified behavior in cuda_python/docs/source/conf.py: The bindings documentation path now uses release when IS_RELEASE is "true" and latest otherwise, and _bindings_docs_url combines that path with CUDA_PYTHON_DOMAIN.
observed — Modified behavior in cuda_python/docs/source/conf.py: The cuda.bindings reference now points to _bindings_docs_url instead of always linking to the latest documentation.
observed — Modified behavior in cuda_python/docs/source/conf.py: Adds _pin_bindings_toctree, which acts only on index, raises ValueError if the expected latest toctree entry is missing, and otherwise replaces its first occurrence with the selected bindings URL. setup connects the handler to source-read only for release builds.
observed — Modified behavior in cuda_python/docs/source/index.rst: The comment now documents that release builds replace the cuda.bindings toctree URL with the matching versioned inline-link URL; it replaces the note about Sphinx URL insertion and hard-coded URLs.
- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Reviewing files that changed from the base of the PR and between a30444c and d87a572.
Files selected for processing: 2
cuda_python/docs/source/conf.py
cuda_python/docs/source/index.rst
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This branch has not been deployed
No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cuda.bindingsEverything related to the cuda.bindings moduledocumentationImprovements or additions to documentationPR review get-togetherMark PRs you'd like the team to review at the weekly PR review get-together.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
— codex on behalf of Ralf —
Description
The archived CUDA Python 12.9.11 docs link to the shared bindings
latestpage, which currently serves CUDA 13. 12.9.11 metapackage docsUse the matching bindings archive for the
cuda.bindingsmenu and body links in new metapackage release builds. The Sphinx config computes the destination once from the existing build mode and archive version, then supplies it to the inline reference and the index toctree. Main and preview builds use the sharedlatestdestination.Validation
Rendered the metapackage docs locally in CUDA 12 and CUDA 13 release modes, main mode, and preview mode. Verified every
cuda.bindingslink on the landing page and a release-note subpage. The original source reproduced the wrong destination in the same CUDA 12 release-mode build. Pre-commit passed for both changed files. The repository-wide run passed all applicable hooks except the authored-docs link check, which received HTTP 503 from GitHub for an existing Pathfinder release-note link.Checklist