Repository navigation
[doc] Batch of small docs fixes - #66664
Conversation
1f7eb7b to
4bb3ccd
Compare
There was a problem hiding this comment.
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.
| @@ -0,0 +1,58 @@ | |||
| This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | |||
|
|
|||
| ## Available Scripts | |||
There was a problem hiding this comment.
Guessing these titles will be a different PR. I'm assuming README's are Sphynx index.md.
There was a problem hiding this comment.
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.
f6c02cf to
151f527
Compare
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]>
Signed-off-by: Douglas Strodtman <[email protected]>
…only) 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]>
151f527 to
63eb1c3
Compare
## 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]>
…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]>
Description
A rolling batch of small, independent docs fixes. Ray's
AGENTS.mdasks 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
setup-dev.py --allowinstead of prompt-order instructions (doc/source/rllib/dev.md). The example said to answerYonly at "the first question on linking RLlib."setup-dev.pynow prompts forllm,serve/llm, anddata/llm.pybeforerllib, so following the comment as written linksllmand declines RLlib. The example now uses--allow rllib, with--allow rllib tune trainas 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/#66096rllib/symlink layout. No such references remain.doc/source/kuberay/user-guides/gpu.rstto.md). It's the last prose.rstpage underdoc/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 tokuberay/. Two commits: a faithful conversion, then a whitespace-only soft-wrap verified byray-soft-wrap'sverify.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).doc/source/ray-contribute/getting-involved.md). The page includes_includes/_latest_contribution_doc.rstwith{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.doc/source/cluster/vms/getting-started.md). The vSphere tab linked togithub-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 onmaster. 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
doc/source/rllib/dev.md, and searches forsetup-dev rllib,rllib dev.md, and the page title return no open PRs.MyST,gpu.rst, andgetting-involved.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
ray==2.59.0wheel into a clean Python 3.11 venv, then ran both documented commands from this branch:python python/ray/setup-dev.py --allow rllib: linked onlysite-packages/ray/rllibto the checkout'spython/ray/rlliband skipped every other package.python python/ray/setup-dev.py --allow rllib tune train: linkedtuneandtrain, reportedrllibas already linked, and skipped the other 20 packages..mdpassed. They confirm the frontmatter parses, the fences balance, and no RST constructs or scheme-less links are left. The page has notestcodeor doctest blocks, anddoc/BUILD.bazeldoesn't name it. Heading levels were checked against the live/en/masterpage. The Read the Docs preview build and a render diff against/en/masterare pending./en/masteris expected to differ at the top of the page./en/mastercurrently shows the broken literal text, and this PR shows the admonition.vsphere.md, andmyst_heading_anchors = 4inconf.pygenerates its anchor.pre-commitran 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