Skip to content

[doc] Batch of small docs fixes - #67205

Merged
dstrodtman merged 4 commits into
masterfrom
djs-261020-doc-fixes-batch-2
Oct 21, 2026
Merged

dstrodtman merged 4 commits into
masterfrom
djs-261020-doc-fixes-batch-2

Conversation

@dstrodtman

@dstrodtman dstrodtman commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Why are these changes needed?

A rolling batch of small, independent docs fixes. Ray's AGENTS.md permits mechanical cleanups when they're bundled rather than opened one per PR, so they collect here. Each fix is its own commit, so a reviewer can drop any one without disturbing the rest. This stays a draft while it collects fixes.

Fixes

  • Show the never-run TorchTPU example as a plain code block (train/user-guides/using-accelerators.md). [Doc][TPU] Update TPU docs for TorchTPU, MPMD, and RL workloads #66991 added the TorchTPU example as a testcode block with :skipif: True. Since [doc] Show never-run testcode blocks as plain code blocks #66974, writing-code-snippets.md says not to do that, because the block never runs but reads as tested code. It's now a plain python block, like the JAX TPU example above it. It was the last :skipif: True block under doc/source/.
  • Fix the broken PyTorch Neuron setup link (serve/tutorials/aws-neuron-core-inference-stable-diffusion.md). AWS moved the Neuron setup page, so frameworks/torch/torch-setup.html returns 404 and the scheduled docs link check flags it. The link now points at setup/torch-neuronx.html, which the sibling aws-neuron-core-inference.md tutorial already uses.
  • Link the GIL to the Python glossary (core/actors/async-api.md). The Python wiki dropped its /moin/ paths, so wiki.python.org/moin/GlobalInterpreterLock returns 404. The link now goes to the glossary entry in the official Python docs, docs.python.org/3/glossary.html#term-global-interpreter-lock.

Related issue number

None.

Duplicate check

Not a duplicate. gh pr list --repo ray-project/ray --state open --search "using-accelerators skipif" returns nothing, and #67194, which restyled the same TPU pages, left this block as it was.

Testing

  • Both new link targets return 200, and the glossary page contains the term-global-interpreter-lock anchor. The two old URLs return 404.
  • python doc/test_prose_doctest_targets.py passes: "74 listed pages; every runnable page is accounted for." The page still has other runnable blocks, so it stays in doctest[train-gpu].
  • git grep -n skipif -- doc/source now finds only the guide's instruction not to use it.
  • Extracting the page's examples is unaffected for runnable blocks: pytest-sphinx drops a :skipif: True block before it builds an example, so this block was never collected.
  • pre-commit passes on the changed file.

AI assistance (Claude Code) was used to find and make these fixes. I reviewed every changed line.

🤖 Generated with Claude Code

dstrodtman and others added 3 commits October 20, 2026 15:41
The TorchTPU example added in #66991 is a testcode block with :skipif: True,
which writing-code-snippets.md says not to use since #66974: the block never
runs but reads as tested code. Make it a plain python block, like the JAX TPU
example above it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
…iffusion tutorial

AWS moved the Neuron setup page, so frameworks/torch/torch-setup.html now returns 404. Point at setup/torch-neuronx.html, which the sibling aws-neuron-core-inference.md tutorial already uses.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
…d wiki page

The Python wiki dropped its /moin/ paths, so wiki.python.org/moin/GlobalInterpreterLock now returns 404. Link the glossary entry in the official Python docs instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman
dstrodtman marked this pull request as ready for review October 21, 2026 15:22
@dstrodtman
dstrodtman requested review from a team as code owners October 21, 2026 15:22
@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Oct 21, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates documentation links for Python's Global Interpreter Lock (GIL) and PyTorch Neuron to point to their current official locations. Additionally, it updates a code block directive in the accelerator user guide from a skipped testcode block to a standard python code block. There are no review comments, so I have no feedback to provide.

@dstrodtman
dstrodtman merged commit 14d9ea5 into master Oct 21, 2026
7 checks passed
@dstrodtman
dstrodtman deleted the djs-261020-doc-fixes-batch-2 branch October 21, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants