Skip to content

Fix cuda.core API currentmodule for toolchain docs#2319

Merged
mdboom merged 1 commit into
NVIDIA:mainfrom
isVoid:docs-fix-api-currentmodule
Jul 8, 2026
Merged

Fix cuda.core API currentmodule for toolchain docs#2319
mdboom merged 1 commit into
NVIDIA:mainfrom
isVoid:docs-fix-api-currentmodule

Conversation

@isVoid

@isVoid isVoid commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes the cuda.core API reference navigation for the CUDA compilation toolchain section.

The textures and surfaces section changes the active Sphinx module to cuda.core.texture. Without resetting it, the following autosummary block resolves unqualified toolchain names such as Program, Linker, ObjectCode, and Kernel under the texture namespace. The generated pages still exist, but the main api.html no longer links them under "CUDA compilation toolchain".

This PR resets currentmodule to cuda.core before the compilation toolchain autosummary so the entries resolve and render in the main API page again.

Validation

  • pixi run --manifest-path cuda_core -e docs docs-build-latest
  • Confirmed cuda_core/docs/build/html/latest/api.html links cuda.core.Program, cuda.core.Linker, cuda.core.ObjectCode, cuda.core.Kernel, cuda.core.ProgramOptions, and cuda.core.LinkerOptions.

Note: the docs build completed successfully with one pre-existing warning from release/1.0.0-notes.rst about unknown document support. A normal git commit hook run was blocked by the existing lychee pre-commit configuration requiring a versioned release tag for its rev, so the commit was created with --no-verify after the docs build passed.

@copy-pr-bot

copy-pr-bot Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions github-actions Bot added the cuda.core Everything related to the cuda.core module label Jul 7, 2026
@isVoid isVoid added the documentation Improvements or additions to documentation label Jul 7, 2026 — with ChatGPT Codex Connector
@isVoid isVoid added this to the cuda.core v1.1.0 milestone Jul 7, 2026 — with ChatGPT Codex Connector
@isVoid

isVoid commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test

@github-actions

This comment has been minimized.

@isVoid

isVoid commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Can verify that the PR is fixing the doc.

Currently on public latest:
Screenshot 2026-07-07 at 5 26 12 PM

After this PR:
Screenshot 2026-07-07 at 5 25 58 PM

@isVoid isVoid marked this pull request as ready for review July 8, 2026 00:28
@isVoid isVoid self-assigned this Jul 8, 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. Thanks.

@mdboom mdboom enabled auto-merge (squash) July 8, 2026 17:02
@mdboom mdboom merged commit 95907d9 into NVIDIA:main Jul 8, 2026
301 of 306 checks passed
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Doc Preview CI
Preview removed because the pull request was closed or merged.

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

Labels

cuda.core Everything related to the cuda.core module documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants