Skip to content

[doc-only] Pin bindings links in versioned CUDA Python docs - #3641

Open
rwgk wants to merge 2 commits into
mainfrom
rwgk/pin-release-metapackage-bindings-docs
Open

rwgk wants to merge 2 commits into
mainfrom
rwgk/pin-release-metapackage-bindings-docs

Conversation

@rwgk

@rwgk rwgk commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

— codex on behalf of Ralf —

Description

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.

Checklist

  • I have read the Contributing Guidelines.
  • Rendered builds cover the versioned and shared navigation paths.
  • The documentation is up to date with these changes.

@copy-pr-bot

copy-pr-bot Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@rwgk rwgk added cuda.bindings Everything related to the cuda.bindings module documentation Improvements or additions to documentation labels Nov 27, 2026 — with ChatGPT Codex Connector
@rwgk rwgk self-assigned this Nov 27, 2026
@rwgk
rwgk marked this pull request as ready for review November 27, 2026 07:22
@rwgk rwgk changed the title Pin bindings links in versioned CUDA Python docs [doc-only] Pin bindings links in versioned CUDA Python docs Nov 27, 2026
@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

Explain Change →

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
Recent review info

Run configuration

Commits

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.

@rwgk

rwgk commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test d87a572

@github-actions

Copy link
Copy Markdown
Contributor

@rwgk rwgk added the PR review get-together Mark PRs you'd like the team to review at the weekly PR review get-together. label Nov 30, 2026

@mdboom mdboom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda.bindings Everything related to the cuda.bindings module documentation Improvements or additions to documentation PR review get-together Mark PRs you'd like the team to review at the weekly PR review get-together.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants