Skip to content

[doc] (2.61.0) Use relative links to the new /kuberay/ docs paths - #66742

Merged
edoakes merged 2 commits into
masterfrom
doc-1738-kuberay-link-repoint
Oct 15, 2026
Merged

edoakes merged 2 commits into
masterfrom
doc-1738-kuberay-link-repoint

Conversation

@dstrodtman

@dstrodtman dstrodtman commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

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 [doc] Promote KubeRay to a top-level docs section #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

@dstrodtman dstrodtman changed the title [doc] Repoint absolute links to the new /kuberay/ docs paths [doc] (2.60.0) Repoint absolute links to the new /kuberay/ docs paths Oct 5, 2026
@dstrodtman
dstrodtman force-pushed the doc-1738-kuberay-link-repoint branch from 89697c9 to 261f1d1 Compare October 14, 2026 14:22
@dstrodtman dstrodtman changed the title [doc] (2.60.0) Repoint absolute links to the new /kuberay/ docs paths [doc] (2.60.0) Use relative links to the new /kuberay/ docs paths Oct 14, 2026
@dstrodtman
dstrodtman marked this pull request as ready for review October 14, 2026 14:27
@dstrodtman
dstrodtman requested review from a team as code owners October 14, 2026 14:27

@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 several documentation files and a Python source file to replace absolute URLs pointing to docs.ray.io with relative paths or updated links, improving link consistency and maintenance. There are no review comments, and I have no additional feedback to provide.

@dstrodtman dstrodtman changed the title [doc] (2.60.0) Use relative links to the new /kuberay/ docs paths [doc] (2.61.0) Use relative links to the new /kuberay/ docs paths Oct 14, 2026
@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Oct 14, 2026
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 and others added 2 commits October 14, 2026 12:52
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]>
Ray's writing-style guide prefers build-time cross-references over
hardcoded docs.ray.io URLs. Convert the absolute links in docs pages to
relative Markdown links, and use the {doc} role for gpu.rst. Relative
links resolve within whichever version a reader is browsing and don't
depend on a release shipping the new paths.

The autoscaler error message and the code comment in the JAX trainer
example stay absolute, since readers see them outside the rendered docs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman
dstrodtman force-pushed the doc-1738-kuberay-link-repoint branch from 54c9b34 to 65234a1 Compare October 14, 2026 16:53
@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 14, 2026
@edoakes
edoakes merged commit 2842443 into master Oct 15, 2026
5 of 6 checks passed
@edoakes
edoakes deleted the doc-1738-kuberay-link-repoint branch October 15, 2026 18:32
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.

7 participants