Skip to content

[doc] Batch of small docs fixes - #66664

Merged
dstrodtman merged 6 commits into
masterfrom
djs-261002-doc-fixes-batch
Oct 14, 2026
Merged

dstrodtman merged 6 commits into
masterfrom
djs-261002-doc-fixes-batch

Conversation

@dstrodtman

@dstrodtman dstrodtman commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Description

A rolling batch of small, independent docs fixes. Ray's AGENTS.md asks that trivial edits be bundled rather than opened as one-off PRs, so they collect here. Each item is its own commit or commit pair, so a reviewer can drop any one without touching the rest.

Items

  1. RLlib dev install: use setup-dev.py --allow instead of prompt-order instructions (doc/source/rllib/dev.md). The example said to answer Y only at "the first question on linking RLlib." setup-dev.py now prompts for llm, serve/llm, and data/llm.py before rllib, so following the comment as written links llm and declines RLlib. The example now uses --allow rllib, with --allow rllib tune train as the opt-in for Tune and Train, which doesn't depend on prompt order. Found while checking that READMEs and contributor docs no longer reference the pre-Move /rllib/ into /python/ray/ #66096 rllib/ symlink layout. No such references remain.
  2. Convert the KubeRay GPU guide to MyST (doc/source/kuberay/user-guides/gpu.rst to .md). It's the last prose .rst page under doc/source/ outside the API-reference trees. It was held back from the cluster conversion until [doc] Promote KubeRay to a top-level docs section #66674 moved it to kuberay/. Two commits: a faithful conversion, then a whitespace-only soft-wrap verified by ray-soft-wrap's verify.py. Both labels (kuberay-gpu, kuberay-gpu-override) are preserved, the named hyperlink targets are inlined, and the heading levels match the live page (H1 to H4).
  3. Fix the raw RST at the top of the contributor guide (doc/source/ray-contribute/getting-involved.md). The page includes _includes/_latest_contribution_doc.rst with {include} and :parser: rst, which MyST doesn't parse as RST. Since the page converted to Markdown, docs.ray.io has shown the literal text "… admonition:: Check your version!" at the top of the page. The page was the partial's only consumer, so the admonition is now inline as :::{admonition} and the partial is deleted.
  4. Replace an unreachable vSphere link in the VM getting-started guide (doc/source/cluster/vms/getting-started.md). The vSphere tab linked to github-vcf.devops.broadcom.net/vcf/vmray, an internal Broadcom host that isn't reachable from the public internet, so the nightly link check flags it as broken on master. The link now points to the supervisor service section of the in-tree vSphere launch guide, which covers the same setup step.

Not a duplicate

  • Item 1: no open PR touches doc/source/rllib/dev.md, and searches for setup-dev rllib, rllib dev.md, and the page title return no open PRs.
  • Items 2 and 3: no open PR touches any of the changed paths. I checked the file lists of the 400 most recent open PRs, and searched for MyST, gpu.rst, and getting-involved.
  • Item 4: of the 400 most recent open PRs, only [autoscaler] Add Oracle Cloud Infrastructure (OCI) node provider #66289 also touches doc/source/cluster/vms/getting-started.md. It adds an OCI tab next to the vSphere tab and leaves the vSphere link unchanged.

The README and design-note conversions outside doc/ that were item 4 moved to #66811. Those paths pull in library code-owner approvals, which this PR shouldn't wait on.

Testing

  • Item 1: installed the ray==2.59.0 wheel into a clean Python 3.11 venv, then ran both documented commands from this branch:
    • python python/ray/setup-dev.py --allow rllib: linked only site-packages/ray/rllib to the checkout's python/ray/rllib and skipped every other package.
    • python python/ray/setup-dev.py --allow rllib tune train: linked tune and train, reported rllib as already linked, and skipped the other 20 packages.
  • Item 2: static checks on the new .md passed. They confirm the frontmatter parses, the fences balance, and no RST constructs or scheme-less links are left. The page has no testcode or doctest blocks, and doc/BUILD.bazel doesn't name it. Heading levels were checked against the live /en/master page. The Read the Docs preview build and a render diff against /en/master are pending.
  • Item 3: the render diff against /en/master is expected to differ at the top of the page. /en/master currently shows the broken literal text, and this PR shows the admonition.
  • Item 4: the target heading exists in vsphere.md, and myst_heading_anchors = 4 in conf.py generates its anchor.
  • pre-commit ran on every commit. The master-branch link check is the only hook that applies, and it passed.

This PR was prepared with AI assistance (Claude Code). I reviewed every changed line.

🤖 Generated with Claude Code

@dstrodtman
dstrodtman force-pushed the djs-261002-doc-fixes-batch branch from 1f7eb7b to 4bb3ccd Compare October 7, 2026 14:57
@dstrodtman
dstrodtman marked this pull request as ready for review October 7, 2026 15:04
@dstrodtman
dstrodtman requested review from a team as code owners October 7, 2026 15:04
@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Oct 7, 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 migrates several documentation files from reStructuredText (.rst) to Markdown (.md) format, including guides for KubeRay GPU usage, Ray Tune, RLlib development, and actor/task states, while also updating RLlib development setup instructions. The review feedback addresses minor typographical, grammatical, and formatting issues across these new Markdown files, such as correcting a broken hyperlink in the Tune examples README, fixing subject-verb agreement, adding backticks for filenames, and capitalizing 'Ray' consistently.

Comment thread doc/source/kuberay/user-guides/gpu.md Resolved
Comment thread doc/source/kuberay/user-guides/gpu.md Resolved
Comment thread doc/source/rllib/dev.md Resolved
Comment thread python/ray/dashboard/client/README.md Resolved
Comment thread python/ray/tune/examples/README.md Resolved
Comment thread release/long_running_tests/README.md Resolved

@ronny-anyscale ronny-anyscale 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.

stampy stamp

Comment thread python/ray/dashboard/client/README.md Outdated
@@ -0,0 +1,58 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

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.

Guessing these titles will be a different PR. I'm assuming README's are Sphynx index.md.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

These READMEs aren't part of the Sphinx build. Nothing in doc/ includes them, so they only render on GitHub. I kept the conversion faithful, so the headings stay as they were, including missing H1s and title case. Cleaning those up can go in a follow-up.

@ray-gardener ray-gardener Bot added docs An issue or change related to documentation core Issues that should be addressed in Ray Core labels Oct 7, 2026
@dstrodtman
dstrodtman force-pushed the djs-261002-doc-fixes-batch branch from f6c02cf to 151f527 Compare October 14, 2026 15:11
dstrodtman and others added 6 commits October 14, 2026 11:18
The example told readers to answer 'Y' only at the first prompt, on
the assumption that RLlib is linked first. setup-dev.py now prompts for
llm, serve/llm, and data/llm.py before rllib, so following the comment
linked the wrong package. --allow names the packages explicitly and
doesn't depend on the prompt order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
…cluding an RST partial

getting-involved.md included _includes/_latest_contribution_doc.rst with
{include} :parser: rst, which MyST doesn't parse as RST. docs.ray.io has
shown the literal text '... admonition:: Check your version!' at the top
of the page since the page converted to Markdown. The page was the
partial's only consumer, so inline the admonition and delete the partial.

Signed-off-by: Douglas Strodtman <[email protected]>
Fix typos and formatting carried over from the original .rst sources:
a missing period and a subject-verb error in the KubeRay GPU guide,
"cutting-edge" in the contributor guide, and "Ray" in the RLlib dev
example.

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

The vSphere tab linked to github-vcf.devops.broadcom.net, an internal
Broadcom host that the nightly link check can't reach. Point it at the
supervisor service section of the in-tree vSphere launch guide instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman
dstrodtman force-pushed the djs-261002-doc-fixes-batch branch from 151f527 to 63eb1c3 Compare October 14, 2026 15:19
@dstrodtman
dstrodtman enabled auto-merge (squash) October 14, 2026 15:30
dstrodtman added a commit that referenced this pull request Oct 14, 2026
## Why are these changes needed?

About 75 links in `doc/source/` point back to the Ray docs through
absolute `docs.ray.io` URLs instead of in-tree references. They pin
readers to `/en/latest` or `/en/master` regardless of which version
they're reading, and a few pin to `releases-2.7.0` and `releases-2.48.0`
and show years-old content. They also bypass Sphinx's cross-reference
checking, so a moved page breaks silently. Many already resolve only
through redirects after the `ray-core/` to `core/` move.

This PR replaces them with in-tree references:

- Relative `.md`/`.ipynb` paths, with heading anchors where the original
linked a section.
- `{ref}` labels where the original anchor no longer exists as a
heading. Examples are `system-metrics`, `application-level-metrics`,
`serve-cli`, and `serve-in-production-config-file`.
- `{doc}` for rST targets, per `doc/AGENTS.md`.
- `{func}` and `{class}` for API reference pages: `ray.remote`,
`ray.serve.start`, and `ServeApplicationSchema`.

Link text is unchanged except where a role required it. The edits span
KubeRay, RLlib, Core, Serve, Data, Train, observability, and the
contributor guide, plus eight example notebooks, where only markdown
cells changed.

Out of scope, on purpose:

- URLs in code blocks, code cells, and config files. Those are correct
as absolute URLs.
- `doc/source/templates/`. It's excluded from the build and slated for
removal.
- The `serve/tutorials/video-analysis/` and
`train/examples/jax/intro-to-jax-trainer/` README pairs. The right link
form depends on whether they become Anyscale templates, which is still
being decided.
- `_includes/_latest_contribution_doc.rst`, which deliberately points
versioned builds at `/master`.

## Related issue number

None. This is the follow-on to #66742, which fixes the links into the
new `/kuberay/` paths. This PR doesn't touch any link #66742 changes, so
the two merge independently. I checked open PRs touching the same files:
#66664, #66850, and #66974 edit different lines.

## Checks

- [x] I've signed off every commit (DCO).
- [x] Built the docs locally with the RtD-faithful target: `make -C doc
rtd-build`, which runs `sphinx-build -a -E -W --keep-going` with Python
3.11 and the docs lock. Result: `build succeeded.`, exit 0, and no
Sphinx warnings under `-W`. The only `WARNING` lines in the log are
RLlib's own logger output from `compression.py` and `distributions.py`.
- [x] Spot-checked rendered hrefs in `_build/html`. For example,
`kuberay/user-guides/tls.html` now links
`../../core/configure.html#tls-authentication`, and
`serve/advanced-guides/grpc-guide.html` links
`../api/cli.html#serve-cli` and the `ray.serve.start` reference page.
- Prose and notebook markdown only, so no tests apply.

AI assistance was used to find the links, map each one to its current
source, and apply the edits. This PR stays in draft until the submitter
has reviewed every changed line.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
@dstrodtman
dstrodtman merged commit 17f754c into master Oct 14, 2026
7 checks passed
@dstrodtman
dstrodtman deleted the djs-261002-doc-fixes-batch branch October 14, 2026 15:33
dstrodtman added a commit that referenced this pull request Nov 2, 2026
…own (#66811)

## Description

Converts the repo-root `README.rst` to Markdown. It also converts the
remaining `.rst` READMEs and design notes outside `doc/`, which moved
here from #66664 so that PR doesn't wait on library code-owner
approvals. Unlike those files, `README.rst` is a packaging input.

### Root README

- `README.rst` becomes `README.md`. Images and badges become linked
Markdown images, named hyperlink targets are inlined, and the "Getting
Involved" `list-table` becomes a pipe table. The unused `Workflow`
target, which nothing referenced, is dropped.
- `python/setup.py` reads `README.md` and sets
`long_description_content_type="text/markdown"`, so PyPI renders it as
Markdown.
- `lint: doc_readme` (`ci/lint/lint.sh`) drops `--restructuredtext` and
its `docutils` install, and keeps `setup.py check --strict --metadata`.
`--restructuredtext` parses the long description as RST whatever its
content type, so it fails on the Markdown file. PyPI doesn't reject a
Markdown long description the way it rejects invalid RST, so the
remaining check covers the metadata. The step's tag and trigger are
unchanged.
- `ci/docker/ray-wheel.Dockerfile`,
`ci/docker/ray-cpp-wheel.Dockerfile`, and the `srcs` of the three wanda
configs that listed `README.rst` (`min.build`, `ray-wheel`,
`ray-cpp-wheel`) now name `README.md`.
- `.buildkite/always.rules.txt` and `always.rules.test.txt` move the
`pypi_readme` trigger from `README.rst` to `README.md`. The comments in
those files and in `lint.rayci.yml` now describe the metadata-only
check.

### READMEs and design notes outside `doc/`

These moved here from #66664. They cover `python/ray/autoscaler/`,
`python/ray/dashboard/client/`, `python/ray/rllib/core/models/`,
`python/ray/tune/`, `python/ray/tune/examples/`,
`release/long_running_tests/`, and `src/ray/design_docs/`
(`actor_states`, `task_states`). Two commits: a pure `git mv` so history
follows each file, then the markup conversion. The rename commit also
updates the two `.buildkite/test.rules.test.txt` expectations that name
`tune/README` and `task_states`. Both paths still hit the repo-wide
prose skip, which matches `*.md` as well as `*.rst`. Two of the files
needed no markup change: `autoscaler/README` was already Markdown inside
an `.rst`, and `rllib/core/models/README` is plain text. A follow-up
commit fixes typos and formatting carried over from the `.rst` sources,
and points the `custom_func_checkpointing` link in the Tune examples
README at `custom_func_checkpointing.py` instead of
`logging_example.py`.

## Not a duplicate

No open PR converts `README.rst`. Searches for `README.rst`,
`README.md`, `long_description`, and `readme markdown` return no
overlapping work. An earlier version of this PR also converted
`CONTRIBUTING.rst`. That conversion now lives in #67116, which also
updates the file's content, so this PR leaves `CONTRIBUTING.rst` alone.
Among the 400 most recent open PRs, #59038 (adds a badge, last updated
2025-12-18) edits `README.rst` and would need to move its change to
`README.md`. Several open PRs touch `python/setup.py`, but on unrelated
lines. For the READMEs and design notes, no open PR touches any of the
changed paths.

## Testing

- Rendered `README.rst` with docutils and `README.md` with a CommonMark
parser, then compared the visible text, link targets, and image sources.
All three match.
- In a Python 3.11 venv, from `python/`:
- `python setup.py check --strict --metadata` (the new lint command)
exits 0.
- `python setup.py check --restructuredtext --strict --metadata` (the
old command) exits 1 on the Markdown README with `Line block ends
without a blank line`. That confirms the lint step had to change.
- Ran `rayci test-rules` (built from `ray-project/rayci` at `ef6403a`)
on this branch and it passed. As a negative control, removing
`pypi_readme` from the `README.md` expectation made it fail.
- READMEs and design notes: rendered each `.rst` with docutils and each
`.md` with a CommonMark parser, then compared the visible text and link
targets. They match, with two exceptions. The TensorFlow URL in
`tune/examples/README` is a bare URL, which GitHub autolinks.
`long_running_tests/README`'s "Anyscale UI" link had malformed RST
markup with no trailing underscore, so it rendered the raw URL. It's now
a working link.
- `pre-commit` passed on every commit.
- Not run locally: the wheel image builds that copy `README.md`.
Premerge builds them.

This PR was prepared with AI assistance (Claude Code). I reviewed every
changed line.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core docs An issue or change related to documentation 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