Repository navigation
[doc] Promote KubeRay to a top-level docs section - #66674
Conversation
There was a problem hiding this comment.
Code Review
This pull request reorganizes the documentation by moving the Ray on Kubernetes (KubeRay) content from doc/source/cluster/kubernetes/ to a top-level doc/source/kuberay/ directory. It updates all corresponding internal links, table of contents, configuration files (such as .vale.ini and conf.py), and sets up redirects in doc/redirects/current.yaml to ensure seamless navigation. There are no review comments to address, so I have no additional feedback to provide.
| /doc/source/ray-more-libs/ @ray-project/ray-core @ray-project/ray-docs @ray-project/ray-docs-reviewers | ||
|
|
||
| /doc/source/cluster/kubernetes/ @ray-project/kuberay @ray-project/ray-core @ray-project/ray-docs @ray-project/ray-docs-reviewers | ||
| /doc/source/kuberay/ @ray-project/kuberay @ray-project/ray-core @ray-project/ray-docs @ray-project/ray-docs-reviewers |
There was a problem hiding this comment.
I think it should still be /doc/source/kubernetes because there are some docs that talk about Ray + Kubernetse without KubeRay specifically
There was a problem hiding this comment.
@andrewsykim I did a cursory pass and it looked like almost everything under this old path was just about KubeRay at this point. Happy to add more narratives around non-KubeRay K8s/Ray support or move pages back to the old location. Note that the redirects only work for pages that 404, and we still have until the Ray 2.60.0 release before these docs will shift to /latest. But happy to hold off if we want to do more intentional edits before the re-pathing.
There was a problem hiding this comment.
I'll defer to you, but I think /doc/source/kubernetes is more fitting in general. I vaguely recall a user guide showing how you can run Ray on Kubernetes without KubeRay but I can't find it anymore, maybe we deleted it
|
Will this break all existing links or will there be redirect in place? |
^ ignore me, I see the code changes for redirects now :) |
Move doc/source/cluster/kubernetes/ to doc/source/kuberay/ as a pure path change, so every file is a git rename. Within the move: - Move each hub page into its directory as index.md (benchmarks, examples, getting-started, references, troubleshooting, user-guides, and k8s-ecosystem). - Rename k8s-ecosystem/ to ecosystem/. - Drop the redundant kuberay- filename prefix from 10 pages. Update the path references that move with the files: toctrees and doc links, CODEOWNERS, the path-scoped KubeRay section in .vale.ini, the raw GitHub link in ray-core/configure.md, the DOC_LIB section list in conf.py, and path mentions in the writing-style guide, the rst-to-myst skill, and the llms_txt docstring. Labels are unchanged. Add redirects from every old URL to its new path, and move the existing /cluster/kubernetes/* catch-all to /kuberay/*. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Add KubeRay to the root toctree directly above Ray Core, and move Ecosystem from above Ray Core to directly below APIs. Remove the "Deploying on Kubernetes" entry from the Ray Clusters toctree so KubeRay has a single parent in the navigation. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Move back the files whose content doesn't depend on the KubeRay operator, so cluster/kubernetes/ can hold general guidance for running Ray on Kubernetes: - user-guides/storage.md, with its two images. - user-guides/reduce-image-pull-latency.md. - configs/static-ray-cluster.tls.yaml, a plain-Deployment Ray cluster that ray-core/configure.md links to by raw GitHub URL. Raw URLs don't redirect, so the link reverts to its original path. The two pages keep their master paths, so they need no redirects. The KubeRay user-guides toctree points at them in place until they get their own parent. Keep the cluster/kubernetes/ CODEOWNERS entry alongside kuberay/ with the same owners, and register the KubeRay Vale style for both paths. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Give cluster/kubernetes/ its own index page as the parent for the guides that don't depend on KubeRay, and restore "Deploying on Kubernetes" in the Ray Clusters toctree, now pointing at that page. The index links to the KubeRay section for deploying and managing Ray clusters with the operator. Move the storage and image pull latency guides from the KubeRay user-guides toctree to the new index. The KubeRay user-guides list keeps both as cross-references. Update the Ray on Kubernetes path mention in the writing-style guide. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Retitle kuberay/index.md from "Ray on Kubernetes" to "KubeRay" and rewrite its opening as an introduction to KubeRay, without the "Overview" heading. The kuberay-index label moves to the H1. The custom resource list now includes RayCronJob, so it names all four ray.io/v1 kinds. The page links to the general Ray on Kubernetes section for guidance that doesn't depend on KubeRay. On the general Ray on Kubernetes page, list the operators that deploy and manage Ray clusters on Kubernetes: KubeRay, and the Anyscale operator, with a link to the Anyscale on Kubernetes docs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Remove the Anyscale paragraph from the KubeRay index, and reframe the intro, card grid, and About section around KubeRay rather than Kubernetes in general. Sentence-case the card titles and buttons. Trim the Anyscale operator entry on the Ray on Kubernetes index to a one-line pointer to the Anyscale docs, and describe the two general guides as not depending on KubeRay. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Move the storage and image pull latency guides, and the storage guide's two images, back to kuberay/user-guides/ and restore them to the KubeRay user-guides toctree in their original positions. Rename cluster/kubernetes/index.md to cluster/kubernetes.md, since it no longer has child pages, and point the Ray Clusters toctree at it. cluster/kubernetes/configs/static-ray-cluster.tls.yaml stays in place so the raw GitHub link in ray-core/configure.md keeps working. The master URLs of the two guides reach their new paths in one hop through the existing /cluster/kubernetes/* wildcard, so no new redirects are needed. Update CODEOWNERS, .vale.ini, and the path mention in writing-style.md for the new page path. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
State that KubeRay is the officially supported way to run Ray on Kubernetes, and that a manual deployment without an operator is possible but not officially supported. Keep a one-line pointer to the Anyscale docs for the Anyscale operator. Add a section that points to KubeRay guides that don't depend on the operator: storage and dependencies, image pull latency, managed Kubernetes cluster setup, and scheduling. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
06f3983 to
1edaf0f
Compare
…pages and APIs (#66743) ## Why are these changes needed? `doc/redirects/README.md` said the `doc: apply redirects` step runs "on each postmerge run of master" and that a change goes live "a few hours later." Neither is quite right. The step runs only on the postmerge builds that the scheduled release-automation pipeline triggers. A webhook-triggered postmerge build for a merge commit doesn't include it. In practice, a redirect that merges on a weekday goes live within a few hours, but one that merges late in the week can wait about two days. If the scheduled run fails before it reaches the step, the change waits for the next run. Example: #66674 merged at 16:52 UTC on 2026-10-05. Its own postmerge build didn't schedule the apply step, and the scheduled 16:00 UTC run before it failed at `init`. So the new rules weren't live on Read the Docs, and the old `/en/master/cluster/kubernetes/...` URLs still hit the previous catch-all until the next scheduled run. `doc/AGENTS.md` also said nothing about redirects. An agent that moved a page under `doc/source/` got no instruction to add a redirect. The only signal was the redirect validation check, which runs only when `doc/redirects/` already changed. Neither file said that renaming or moving an API changes the path of its generated autosummary reference page, so that page needs a redirect too. This PR does the following: - Shortens step 3 of "Adding or changing a redirect" in `doc/redirects/README.md` and adds a "When merged redirects go live" section. The new section describes when the apply step runs, what happens when a run fails or skips it, and how to check whether a merged change is live with `rtd-redirects plan`. The exact schedule lives in Buildkite, not the repo, so the README describes the timing rather than listing run times. - Adds a "Renaming, moving, or removing APIs" section to `doc/redirects/README.md`. It explains that renaming or moving an API, or the API page that lists it, changes the generated reference page path and needs a redirect. It says that a removed reference page for a deprecated or end-of-life API with a clear successor redirects to the successor's page. It also explains that `force: false` rules fire only on a 404, so they never replace a reference page that an older docs version still serves. - Adds a "Moving or renaming pages and APIs" section to `doc/AGENTS.md` that covers pages and generated API reference pages, points to the README, and sets expectations about the delay. Docs-only. No CI or behavior changes. ## Related issue number None. ## Checks - [x] I've signed off every commit (DCO). - [ ] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/ 🤖 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]>
## Description KubeRay is one of the most-visited areas of the Ray docs, but it sits two levels down under Ray Clusters, and every KubeRay URL carries a redundant `cluster/kubernetes/` prefix. This PR promotes KubeRay to a top-level entry in the left sidebar and shortens its URLs by moving the KubeRay docs from `doc/source/cluster/kubernetes/` to `doc/source/kuberay/`. It replaces the top-nav tab approach from ray-project#65438. All the Ray on Kubernetes docs move to `kuberay/`. KubeRay is the officially supported way to run Ray on Kubernetes, and the docs already removed the examples for deploying Ray manually (ray-project#53833). The few guides that apply to Ray on Kubernetes more broadly still use KubeRay for their examples, so they stay with the rest of the KubeRay docs. The old `cluster/kubernetes/index` landing page becomes a short `cluster/kubernetes.md` page under Ray Clusters. It points readers to KubeRay, says that a manual deployment is possible but not officially supported, and lists the KubeRay guides that can help with other Ray on Kubernetes deployments. The KubeRay landing page now covers only KubeRay. Previews: - [Ray on Kubernetes](https://anyscale-ray--66674.com.readthedocs.build/en/66674/cluster/kubernetes.html) - [KubeRay](https://anyscale-ray--66674.com.readthedocs.build/en/66674/kuberay/index.html) **Please review commit by commit.** Each commit is scoped so it can be signed off on its own. The PR squash-merges as one change. Commits 3 through 5 came out of an earlier round of review, which kept KubeRay-independent guides in a general `cluster/kubernetes/` section. Commits 6 through 8 reverse that: they move those guides back under KubeRay and turn the general section into a single page. If you're reviewing for the first time, read commits 3 through 5 with the reversal in mind. The final state is what commits 1, 2, and 6 through 8 describe. ## Related issues Related to ray-project#65438, which this replaces. ## Additional information ### Commit 1: path change What to sign off on: every file shows as a git rename, and the only content deltas are path references that have to move with the files. - Moves `cluster/kubernetes/` to `kuberay/`, which is 128 files, all detected as renames. The tree moves as a unit, so the relative `images/` and `configs/` paths inside it stay valid. - Renames within the move, since every URL changes anyway: - Hub pages move into their directories as `index.md`: `benchmarks`, `examples`, `getting-started`, `references`, `troubleshooting`, `user-guides`, and `k8s-ecosystem`. - `k8s-ecosystem/` becomes `ecosystem/`. - Drops the redundant `kuberay-` filename prefix from 10 pages: `getting-started/operator-installation`, and `user-guides/auth`, `auth-rbac`, `dashboard`, `gcs-ft`, `gcs-persistent-ft`, `gcs-rocksdb-ft`, `history-server`, `mtls`, `serve-high-throughput`. - Path references updated with the move: - Toctrees and `{doc}`/`:doc:`/relative Markdown links inside and outside the tree (`ray-core/`, `serve/`, `ray-observability/`, `ray-overview/`, `cluster/`). - `.github/CODEOWNERS`: same owners, new path. - `.vale.ini`: the path-scoped KubeRay style section. - `conf.py`: adds `kuberay` to `all_toc_libs`. The directory scan only picks up `ray-*` names, so without this entry `DOC_LIB=<lib>` single-library builds would stop excluding KubeRay, and `DOC_LIB=kuberay` wouldn't work. It previously rode along with `cluster`. - `/en/master/` links in the JAX trainer example `README.md` and `.ipynb`. - Path mentions in `ray-contribute/writing-style.md`, `doc/.claude/skills/rst-to-myst/SKILL.md`, and the `_ext/llms_txt.py` docstring example. - Left alone on purpose: - `(kuberay-*)=` and `(k8s-*)=` label definitions and every label-targeted ref, since labels don't depend on filenames. - Absolute `docs.ray.io/en/latest/...` and release-pinned links in prose and in `python/ray/autoscaler/_private/kuberay/autoscaling_config.py`. The redirects below cover them. Rewriting `/en/latest/` links before a release ships the new paths would break them. **Redirects** (`doc/redirects/current.yaml`): - Specific `page` rules for the 7 hubs, the `k8s-ecosystem/*` prefix, and the 10 prefix drops, placed before the directory wildcard `/cluster/kubernetes/*` → `/kuberay/:splat`. - The existing catch-all `/cluster/kubernetes/*` → `/cluster/kubernetes/index.html` moves to `from: /kuberay/*` with its `to:` unchanged, so older releases keep resolving. - `rtd-redirects validate`: 0 errors, 0 warnings. Chain notes go from 58 to 78. - `rtd-redirects simulate --prefix /cluster/kubernetes/` passes on master, latest, `releases-2.58.0`, `releases-2.40.0`, and `releases-2.20.0`: 0 regressions, 0 wrong landings, 0 new loops on every version. Final state, all eight commits, run with `--git-renames doc/source` and each release's `objects.inv` as its page set: | Version | 0 hops | 1 hop | 2 hops | 3 hops | |---|---|---|---|---| | master (after) | 0 | 271 | 11 | 11 | | latest | 97 | 240 | 16 | 0 | | releases-2.58.0 | 96 | 240 | 17 | 0 | | releases-2.40.0 | 75 | 173 | 40 | 0 | | releases-2.20.0 | 66 | 173 | 49 | 0 | Every page under `/cluster/kubernetes/` on master today reaches its new path in one hop, including the storage and image pull latency guides and the landing page itself, `/cluster/kubernetes/index.html`, which lands on `/kuberay/index.html`. No master URL resolves without a redirect, because nothing stays under `/cluster/kubernetes/`. The new `cluster/kubernetes.html` page is a new URL. The 3-hop entries on master are URLs that don't match any current page, such as pages removed before this PR. They go from `/cluster/kubernetes/<page>` to `/kuberay/<page>`, then through the `/kuberay/*` catch-all to `/cluster/kubernetes/index.html`, then through the wildcard to `/kuberay/index.html`. They land on the KubeRay landing page, which is the page they reached before. The catch-all's `to:` stays `/cluster/kubernetes/index.html` so older releases, which have no `kuberay/` directory, keep resolving without a loop. The 2-hop entries on older releases are KubeRay pages newer than that release, and they land on the same index page as before. The remaining 2-hop entries are pre-existing chains outside KubeRay, such as RLlib and Tune. **llms.txt shards.** RtD page redirects fire on any 404 path, not only `.html`. On today's master, `/en/master/cluster/kubernetes/no-such-file.txt` already 301s through the existing `/cluster/kubernetes/*` catch-all. The local build emits `kuberay/llms-full.txt`, so `/cluster/kubernetes/llms-full.txt` reaches it through the directory wildcard in one hop, with no extra rule. `simulate` reports that URL as landing on the index instead, because its page sources only list HTML pages. It reports the same URL as missing on today's master, where it returns 200. ### Commit 2: navigation What to sign off on: sidebar order only. - Root toctree: adds `KubeRay <kuberay/index>` directly above Ray Core, and moves `Ecosystem` from above Ray Core to directly below APIs. - Removes `Deploying on Kubernetes` from the Ray Clusters toctree, so KubeRay has one parent. Commit 4 restores the entry for the general section. - `navbar.yml` doesn't reference KubeRay pages, so it doesn't change. ### Commit 3: keep KubeRay-independent content in `cluster/kubernetes/` Commit 7 reverses the page moves in this commit. The config file stays where this commit puts it. What to sign off on: these files don't depend on the KubeRay operator, and they keep their master paths. - Moves back to `cluster/kubernetes/`, as git renames: - `user-guides/storage.md`, with its two images. - `user-guides/reduce-image-pull-latency.md`. - `configs/static-ray-cluster.tls.yaml`. It's a plain-Deployment Ray cluster with no KubeRay, left over from the page ray-project#53833 removed, and its only consumer is `ray-core/configure.md`. Keeping it in place means that file's raw GitHub link doesn't change at all, so existing copies of the link keep working. - `.github/CODEOWNERS`: keeps the `/doc/source/cluster/kubernetes/` entry alongside the new `/doc/source/kuberay/` one, with the same owners. - `.vale.ini`: registers the KubeRay style for both paths. - The two pages need no redirects, because RtD page redirects only fire on a 404. ### Commit 4: general Ray on Kubernetes section Commit 7 replaces this section with a single page, `cluster/kubernetes.md`. What to sign off on: navigation only, plus a minimal index page. - Adds `cluster/kubernetes/index.md` as the parent for the two general guides. It links to KubeRay for deploying and managing Ray clusters with the operator. It's intentionally short for now. - Restores `Deploying on Kubernetes` in the Ray Clusters toctree, now pointing at that page. KubeRay keeps a single parent, the root toctree. - Moves the two guides from the KubeRay user-guides toctree to the new index. The KubeRay user-guides list keeps both as cross-references. - Updates the Ray on Kubernetes path mention in `ray-contribute/writing-style.md`. ### Commit 5: landing pages Commits 6 and 8 revise both pages again. What to sign off on: prose on the two index pages. - `kuberay/index.md`: retitles the page from "Ray on Kubernetes" to "KubeRay" and rewrites the opening as an introduction to KubeRay, without the "Overview" heading. The `kuberay-index` label moves to the H1, so its existing refs keep resolving. The custom resource list adds RayCronJob, so it names all four `ray.io/v1` kinds. The page links to the general section. - `cluster/kubernetes/index.md`: lists the operators that deploy and manage Ray clusters on Kubernetes, which are KubeRay and the Anyscale operator, with a link to the Anyscale on Kubernetes docs. ### Commit 6: center the KubeRay landing page on KubeRay What to sign off on: prose on the two landing pages. - `kuberay/index.md`: removes the Anyscale paragraph. Reframes the card grid and the "Learn more" lead-in around KubeRay rather than Kubernetes in general, and sentence-cases the card titles and buttons. Folds the one-item "About KubeRay" list into prose. - `cluster/kubernetes/index.md`: cuts the Anyscale operator entry to one line that links to the Anyscale docs. ### Commit 7: move the general guides back under KubeRay What to sign off on: path changes only, with no prose edits. - Moves `storage.md`, its two images, and `reduce-image-pull-latency.md` back to `kuberay/user-guides/` as git renames, and restores both guides to the KubeRay user-guides toctree in their original positions. - Renames `cluster/kubernetes/index.md` to `cluster/kubernetes.md`, since it no longer has child pages. The Ray Clusters toctree points at the new path. - Leaves `cluster/kubernetes/configs/static-ray-cluster.tls.yaml` in place, so the raw GitHub link in `ray-core/configure.md` doesn't change. - `.github/CODEOWNERS`: adds `/doc/source/cluster/kubernetes.md` and keeps the `/doc/source/cluster/kubernetes/` entry for the config file. `.vale.ini` and `ray-contribute/writing-style.md` point at the new page path. - Needs no new redirects. The old master URLs of the two guides reach their new paths in one hop through the existing `/cluster/kubernetes/*` wildcard. ### Commit 8: rewrite the Ray on Kubernetes page What to sign off on: prose on `cluster/kubernetes.md`. - States that KubeRay is the officially supported way to run Ray on Kubernetes, and that a manual deployment without an operator is possible but not officially supported. - Keeps a one-line pointer to the Anyscale docs for the Anyscale operator. - Adds a "KubeRay guides that apply more broadly" section, which links to the storage and dependencies, image pull latency, managed Kubernetes cluster setup, and scheduling guides. Their examples use KubeRay, and the section says so. ### Out of scope - Expanding `cluster/kubernetes.md` beyond its pointer to KubeRay and the guide list. - Reworking the Ray Clusters landing page prose and cards that still describe Kubernetes as one of two deployment paths. - `user-guides/k8s-*` slugs (`k8s-autoscaler`, `k8s-cluster-setup`, `k8s-events`), `persist-kuberay-*-logs`, and `troubleshooting/troubleshooting.md`. Reviewers: if you'd like any of these renamed, say so, and it can go in a follow-up so this PR stays a pure move. ### Verification - `make -C doc rtd-build` (RtD-faithful, `-W --keep-going`) builds clean for commits 1 and 2, and for the state after commit 5: `build succeeded.`, exit 0. The RtD preview build is the check for commits 6 through 8. - `rtd-redirects validate`: 0 errors, 0 warnings on the final state. `rtd-redirects simulate` reports 0 regressions, 0 wrong landings, and 0 new loops on every version in the table above. - Rebased onto master. The only conflict was `ray-observability/ray-distributed-debugger`, which master converted from RST to MyST. Commit 1 applies its two quickstart link updates to the new `.md` file. - Commit 1 shows all 128 targets as renames in `git show --stat --find-renames`. ### Coordination Open PRs touching this directory will need a rebase onto the new paths after this merges: ray-project#65848, ray-project#65709, ray-project#65965, ray-project#66089, ray-project#65840. I'll handle those rebases. Git rename detection should carry most of them over cleanly. 🤖 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]>
…pages and APIs (ray-project#66743) ## Why are these changes needed? `doc/redirects/README.md` said the `doc: apply redirects` step runs "on each postmerge run of master" and that a change goes live "a few hours later." Neither is quite right. The step runs only on the postmerge builds that the scheduled release-automation pipeline triggers. A webhook-triggered postmerge build for a merge commit doesn't include it. In practice, a redirect that merges on a weekday goes live within a few hours, but one that merges late in the week can wait about two days. If the scheduled run fails before it reaches the step, the change waits for the next run. Example: ray-project#66674 merged at 16:52 UTC on 2026-10-05. Its own postmerge build didn't schedule the apply step, and the scheduled 16:00 UTC run before it failed at `init`. So the new rules weren't live on Read the Docs, and the old `/en/master/cluster/kubernetes/...` URLs still hit the previous catch-all until the next scheduled run. `doc/AGENTS.md` also said nothing about redirects. An agent that moved a page under `doc/source/` got no instruction to add a redirect. The only signal was the redirect validation check, which runs only when `doc/redirects/` already changed. Neither file said that renaming or moving an API changes the path of its generated autosummary reference page, so that page needs a redirect too. This PR does the following: - Shortens step 3 of "Adding or changing a redirect" in `doc/redirects/README.md` and adds a "When merged redirects go live" section. The new section describes when the apply step runs, what happens when a run fails or skips it, and how to check whether a merged change is live with `rtd-redirects plan`. The exact schedule lives in Buildkite, not the repo, so the README describes the timing rather than listing run times. - Adds a "Renaming, moving, or removing APIs" section to `doc/redirects/README.md`. It explains that renaming or moving an API, or the API page that lists it, changes the generated reference page path and needs a redirect. It says that a removed reference page for a deprecated or end-of-life API with a clear successor redirects to the successor's page. It also explains that `force: false` rules fire only on a 404, so they never replace a reference page that an older docs version still serves. - Adds a "Moving or renaming pages and APIs" section to `doc/AGENTS.md` that covers pages and generated API reference pages, points to the README, and sets expectations about the delay. Docs-only. No CI or behavior changes. ## Related issue number None. ## Checks - [x] I've signed off every commit (DCO). - [ ] I've run `scripts/format.sh` to lint the changes in this PR. - [ ] I've included any doc changes needed for https://docs.ray.io/en/master/. - [ ] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/ 🤖 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]>
#66674 moved the KubeRay docs from cluster/kubernetes/ to kuberay/ and left absolute docs.ray.io links alone, because the new paths don't exist on /en/latest/ until a release ships them. Repoint those links, switch the JAX trainer example from /en/master/ to /en/latest/, and fix the TPU anchor in the autoscaler error message, which was already broken. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
## 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-#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 #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 #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](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
…6742) ## Description #66674 moved the KubeRay docs from `cluster/kubernetes/` to `kuberay/`. It deliberately left absolute `docs.ray.io/en/latest/...` links alone, because the new paths don't exist on `/en/latest/` until a Ray release ships them, and the redirects keep the old URLs working. This PR is that deferred follow-up. - Converts the 10 absolute links in 8 docs pages to relative Markdown links, following the writing-style guide's preference for build-time cross-references over hardcoded docs URLs. The link to `gpu.rst` uses the `{doc}` role, because a Markdown link to an `.rst` source emits `myst.xref_missing`. Each target is the page the redirects in `doc/redirects/current.yaml` send the old URL to, including the renames from the move, such as `kuberay-operator-installation` to `operator-installation`. The `kai-scheduler.md` link drops its `#kuberay-operator-installation` anchor, which pointed at the page's H1. - Keeps three links absolute, because readers see them outside the rendered docs: the TPU node selector error message in `python/ray/autoscaler/_private/kuberay/autoscaling_config.py`, and the KubeRay TPU code comment in the JAX trainer example's `README.md` and `README.ipynb`. These point at the new `/en/latest/kuberay/` paths. The JAX comment moves from `/en/master/` to `/en/latest/`, which #66674 used only because the new path wasn't on `/en/latest/` yet. - Fixes the anchor in the autoscaler TPU error message. `#configuring-ray-pods-for-tpu-usage` doesn't exist on the TPU page, in either the released or the current docs. The section is `#configuring-kubernetes-pods-for-tpu-usage`. - Leaves the two release-pinned links alone on purpose: `releases-2.42.1` in `kuberay/user-guides/gcs-ft.md` and `releases-2.48.0` in `ray-core/internals/autoscaler-v2.md`. **Safe to merge before the next release.** The relative links resolve within whichever docs version a reader is browsing. Of the three absolute links, the autoscaler message only reaches users in a release that already includes #66674. Until that release publishes, the JAX example's `/en/latest/kuberay/` URL redirects to the old KubeRay index rather than the TPU guide, so it lands on a related page instead of a 404. ## Related issues Follow-up to #66674. The matching change in the KubeRay repo is kuberay-project/kuberay#5379. ## Additional information Not a duplicate: no open PR touches these links. #66674 left them for this follow-up. Verification: - `git grep -E "docs\.ray\.io/[^ ]*cluster/kubernetes" -- . ':!doc/redirects'` returns only the two release-pinned links. - `git grep "docs.ray.io/en/[a-z0-9.]*/kuberay"` returns only the three intentionally absolute links. - The relative-link anchors `#specifying-non-default-ports` and `#image` in `kuberay/user-guides/config.md` come from `myst_heading_anchors = 4` in `conf.py`. - `README.ipynb` still parses as JSON, and its link matches `README.md`. - No test asserts on the autoscaler message text. This PR was prepared with AI assistance (Claude Code) and reviewed by me. 🤖 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]>
Description
KubeRay is one of the most-visited areas of the Ray docs, but it sits two levels down under Ray Clusters, and every KubeRay URL carries a redundant
cluster/kubernetes/prefix. This PR promotes KubeRay to a top-level entry in the left sidebar and shortens its URLs by moving the KubeRay docs fromdoc/source/cluster/kubernetes/todoc/source/kuberay/. It replaces the top-nav tab approach from #65438.All the Ray on Kubernetes docs move to
kuberay/. KubeRay is the officially supported way to run Ray on Kubernetes, and the docs already removed the examples for deploying Ray manually (#53833). The few guides that apply to Ray on Kubernetes more broadly still use KubeRay for their examples, so they stay with the rest of the KubeRay docs. The oldcluster/kubernetes/indexlanding page becomes a shortcluster/kubernetes.mdpage under Ray Clusters. It points readers to KubeRay, says that a manual deployment is possible but not officially supported, and lists the KubeRay guides that can help with other Ray on Kubernetes deployments. The KubeRay landing page now covers only KubeRay.Previews:
Please review commit by commit. Each commit is scoped so it can be signed off on its own. The PR squash-merges as one change. Commits 3 through 5 came out of an earlier round of review, which kept KubeRay-independent guides in a general
cluster/kubernetes/section. Commits 6 through 8 reverse that: they move those guides back under KubeRay and turn the general section into a single page. If you're reviewing for the first time, read commits 3 through 5 with the reversal in mind. The final state is what commits 1, 2, and 6 through 8 describe.Related issues
Related to #65438, which this replaces.
Additional information
Commit 1: path change
What to sign off on: every file shows as a git rename, and the only content deltas are path references that have to move with the files.
cluster/kubernetes/tokuberay/, which is 128 files, all detected as renames. The tree moves as a unit, so the relativeimages/andconfigs/paths inside it stay valid.index.md:benchmarks,examples,getting-started,references,troubleshooting,user-guides, andk8s-ecosystem.k8s-ecosystem/becomesecosystem/.kuberay-filename prefix from 10 pages:getting-started/operator-installation, anduser-guides/auth,auth-rbac,dashboard,gcs-ft,gcs-persistent-ft,gcs-rocksdb-ft,history-server,mtls,serve-high-throughput.{doc}/:doc:/relative Markdown links inside and outside the tree (ray-core/,serve/,ray-observability/,ray-overview/,cluster/)..github/CODEOWNERS: same owners, new path..vale.ini: the path-scoped KubeRay style section.conf.py: addskuberaytoall_toc_libs. The directory scan only picks upray-*names, so without this entryDOC_LIB=<lib>single-library builds would stop excluding KubeRay, andDOC_LIB=kuberaywouldn't work. It previously rode along withcluster./en/master/links in the JAX trainer exampleREADME.mdand.ipynb.ray-contribute/writing-style.md,doc/.claude/skills/rst-to-myst/SKILL.md, and the_ext/llms_txt.pydocstring example.(kuberay-*)=and(k8s-*)=label definitions and every label-targeted ref, since labels don't depend on filenames.docs.ray.io/en/latest/...and release-pinned links in prose and inpython/ray/autoscaler/_private/kuberay/autoscaling_config.py. The redirects below cover them. Rewriting/en/latest/links before a release ships the new paths would break them.Redirects (
doc/redirects/current.yaml):Specific
pagerules for the 7 hubs, thek8s-ecosystem/*prefix, and the 10 prefix drops, placed before the directory wildcard/cluster/kubernetes/*→/kuberay/:splat.The existing catch-all
/cluster/kubernetes/*→/cluster/kubernetes/index.htmlmoves tofrom: /kuberay/*with itsto:unchanged, so older releases keep resolving.rtd-redirects validate: 0 errors, 0 warnings. Chain notes go from 58 to 78.rtd-redirects simulate --prefix /cluster/kubernetes/passes on master, latest,releases-2.58.0,releases-2.40.0, andreleases-2.20.0: 0 regressions, 0 wrong landings, 0 new loops on every version.Final state, all eight commits, run with
--git-renames doc/sourceand each release'sobjects.invas its page set:Every page under
/cluster/kubernetes/on master today reaches its new path in one hop, including the storage and image pull latency guides and the landing page itself,/cluster/kubernetes/index.html, which lands on/kuberay/index.html. No master URL resolves without a redirect, because nothing stays under/cluster/kubernetes/. The newcluster/kubernetes.htmlpage is a new URL.The 3-hop entries on master are URLs that don't match any current page, such as pages removed before this PR. They go from
/cluster/kubernetes/<page>to/kuberay/<page>, then through the/kuberay/*catch-all to/cluster/kubernetes/index.html, then through the wildcard to/kuberay/index.html. They land on the KubeRay landing page, which is the page they reached before. The catch-all'sto:stays/cluster/kubernetes/index.htmlso older releases, which have nokuberay/directory, keep resolving without a loop. The 2-hop entries on older releases are KubeRay pages newer than that release, and they land on the same index page as before. The remaining 2-hop entries are pre-existing chains outside KubeRay, such as RLlib and Tune.llms.txt shards. RtD page redirects fire on any 404 path, not only
.html. On today's master,/en/master/cluster/kubernetes/no-such-file.txtalready 301s through the existing/cluster/kubernetes/*catch-all. The local build emitskuberay/llms-full.txt, so/cluster/kubernetes/llms-full.txtreaches it through the directory wildcard in one hop, with no extra rule.simulatereports that URL as landing on the index instead, because its page sources only list HTML pages. It reports the same URL as missing on today's master, where it returns 200.Commit 2: navigation
What to sign off on: sidebar order only.
KubeRay <kuberay/index>directly above Ray Core, and movesEcosystemfrom above Ray Core to directly below APIs.Deploying on Kubernetesfrom the Ray Clusters toctree, so KubeRay has one parent. Commit 4 restores the entry for the general section.navbar.ymldoesn't reference KubeRay pages, so it doesn't change.Commit 3: keep KubeRay-independent content in
cluster/kubernetes/Commit 7 reverses the page moves in this commit. The config file stays where this commit puts it.
What to sign off on: these files don't depend on the KubeRay operator, and they keep their master paths.
cluster/kubernetes/, as git renames:user-guides/storage.md, with its two images.user-guides/reduce-image-pull-latency.md.configs/static-ray-cluster.tls.yaml. It's a plain-Deployment Ray cluster with no KubeRay, left over from the page [Doc] Remove "Deploying a static Ray cluster without KubeRay" #53833 removed, and its only consumer isray-core/configure.md. Keeping it in place means that file's raw GitHub link doesn't change at all, so existing copies of the link keep working..github/CODEOWNERS: keeps the/doc/source/cluster/kubernetes/entry alongside the new/doc/source/kuberay/one, with the same owners..vale.ini: registers the KubeRay style for both paths.Commit 4: general Ray on Kubernetes section
Commit 7 replaces this section with a single page,
cluster/kubernetes.md.What to sign off on: navigation only, plus a minimal index page.
cluster/kubernetes/index.mdas the parent for the two general guides. It links to KubeRay for deploying and managing Ray clusters with the operator. It's intentionally short for now.Deploying on Kubernetesin the Ray Clusters toctree, now pointing at that page. KubeRay keeps a single parent, the root toctree.ray-contribute/writing-style.md.Commit 5: landing pages
Commits 6 and 8 revise both pages again.
What to sign off on: prose on the two index pages.
kuberay/index.md: retitles the page from "Ray on Kubernetes" to "KubeRay" and rewrites the opening as an introduction to KubeRay, without the "Overview" heading. Thekuberay-indexlabel moves to the H1, so its existing refs keep resolving. The custom resource list adds RayCronJob, so it names all fourray.io/v1kinds. The page links to the general section.cluster/kubernetes/index.md: lists the operators that deploy and manage Ray clusters on Kubernetes, which are KubeRay and the Anyscale operator, with a link to the Anyscale on Kubernetes docs.Commit 6: center the KubeRay landing page on KubeRay
What to sign off on: prose on the two landing pages.
kuberay/index.md: removes the Anyscale paragraph. Reframes the card grid and the "Learn more" lead-in around KubeRay rather than Kubernetes in general, and sentence-cases the card titles and buttons. Folds the one-item "About KubeRay" list into prose.cluster/kubernetes/index.md: cuts the Anyscale operator entry to one line that links to the Anyscale docs.Commit 7: move the general guides back under KubeRay
What to sign off on: path changes only, with no prose edits.
storage.md, its two images, andreduce-image-pull-latency.mdback tokuberay/user-guides/as git renames, and restores both guides to the KubeRay user-guides toctree in their original positions.cluster/kubernetes/index.mdtocluster/kubernetes.md, since it no longer has child pages. The Ray Clusters toctree points at the new path.cluster/kubernetes/configs/static-ray-cluster.tls.yamlin place, so the raw GitHub link inray-core/configure.mddoesn't change..github/CODEOWNERS: adds/doc/source/cluster/kubernetes.mdand keeps the/doc/source/cluster/kubernetes/entry for the config file..vale.iniandray-contribute/writing-style.mdpoint at the new page path./cluster/kubernetes/*wildcard.Commit 8: rewrite the Ray on Kubernetes page
What to sign off on: prose on
cluster/kubernetes.md.Out of scope
cluster/kubernetes.mdbeyond its pointer to KubeRay and the guide list.user-guides/k8s-*slugs (k8s-autoscaler,k8s-cluster-setup,k8s-events),persist-kuberay-*-logs, andtroubleshooting/troubleshooting.md. Reviewers: if you'd like any of these renamed, say so, and it can go in a follow-up so this PR stays a pure move.Verification
make -C doc rtd-build(RtD-faithful,-W --keep-going) builds clean for commits 1 and 2, and for the state after commit 5:build succeeded., exit 0. The RtD preview build is the check for commits 6 through 8.rtd-redirects validate: 0 errors, 0 warnings on the final state.rtd-redirects simulatereports 0 regressions, 0 wrong landings, and 0 new loops on every version in the table above.ray-observability/ray-distributed-debugger, which master converted from RST to MyST. Commit 1 applies its two quickstart link updates to the new.mdfile.git show --stat --find-renames.Coordination
Open PRs touching this directory will need a rebase onto the new paths after this merges: #65848, #65709, #65965, #66089, #65840. I'll handle those rebases. Git rename detection should carry most of them over cleanly.
🤖 Generated with Claude Code