Repository navigation
[doc] Use in-tree links instead of absolute docs.ray.io URLs - #67006
Merged
Merged
Conversation
Pages under doc/source/ linked to other Ray docs pages through absolute
docs.ray.io URLs, most pinned to /en/latest or /en/master and a few to
releases-2.7.0 and releases-2.48.0. Those links send readers of a
versioned build to a different version, bypass Sphinx's cross-reference
checks, and many now resolve only through redirects after the ray-core/
to core/ move.
Replace them with relative paths, {ref} labels, {doc} for rST targets,
and {func}/{class} roles for API objects. Link text is unchanged except
where a role needs it.
Leaves alone: code blocks and code cells, the legacy doc/source/templates/
tree (excluded from the build), the video-analysis and JAX README pairs
(pending a decision on whether they become Anyscale templates), and the
_includes banner that deliberately points at /master.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates various documentation files and Jupyter notebooks by replacing absolute URLs pointing to https://docs.ray.io with relative links and internal Sphinx cross-references (such as {ref}, {doc}, and {class}). This change ensures that links remain valid and portable across different documentation versions and hosting environments. There are no review comments, and I have no feedback to provide.
ronny-anyscale
approved these changes
Oct 14, 2026
dstrodtman
enabled auto-merge (squash)
October 14, 2026 15:28
edoakes
pushed a commit
that referenced
this pull request
Oct 15, 2026
## Why are these changes needed? `doc/source/templates/` is the Ray 2.6-era "Ray Starter Templates" directory. The harness that made it a templates mechanism is gone. `exclude_patterns` in `doc/source/conf.py` drops `templates/*` from the Sphinx build, and nothing in it backs a bazel test target. What was left on master: - `01_batch_inference`, `02_many_model_training`, `03_serving_stable_diffusion`, `configs/`, `testing/`, and `README.md` had no references outside the directory. The README documents a contribution workflow whose scripts (`testing/validate.py`, `testing/release/`) no longer exist. - `04_finetuning_llms_with_deepspeed` was referenced only by a doctest exclusion in `doc/BUILD.bazel`. #66893 repointed its last doc links to the `deepspeed_finetune` example. - `05_dreambooth_finetuning` backed `train/examples/pytorch/dreambooth-finetuning.md`, which #66893 unpublished because the example doesn't run on current libraries. It also backed two release tests, `air_example_dreambooth_finetuning` and `air_example_dreambooth_finetuning_lora`, through symlinks in `release/air_examples/dreambooth/`. Both tests are `frequency: manual` and were jailed after failing (#49847, #49846). Its `requirements.txt` pins a July-2023 stack (`torch==2.0.1`, `diffusers==0.19.3`, `transformers==4.30.2`). The DreamBooth example is being rebuilt on current diffusers as a new example, so this PR deletes the old sources rather than moving them. The rebuilt example lands outside `templates/`. ## What this PR changes - Deletes `doc/source/templates/` (69 files). - Deletes the unpublished `doc/source/train/examples/pytorch/dreambooth-finetuning.md` and its `exclude_patterns` entry. The temporary redirects in `doc/redirects/current.yaml` from both old DreamBooth URLs to `/train/examples.html` stay as they are, to be repointed when the rebuilt example ships. - Deletes `release/air_examples/dreambooth/` and the two jailed release tests in `release/release_tests.yaml` (the whole `AIR examples` group, which held only these two). - Removes the dead `templates/*` patterns from `exclude_patterns` and `llms_txt_exclude` in `conf.py`, and the `04` doctest exclusion from `doc/BUILD.bazel`. - `.buildkite/test.rules.txt`: drops `doc/source/templates/05_dreambooth_finetuning/` from the literalinclude-sources rule and `doc/source/templates/` from the skip rule that #65289 added. `_templates/` keeps its skip rule. The comments are updated to match. - `.buildkite/test.rules.test.txt`: drops the `templates/` cases. The assertion that the prose-and-image skip still wins inside a `doc`-routed directory moves from `05` to `cluster/doc_code/`, so that coverage isn't lost. - `.github/CODEOWNERS`: drops `templates` from the catch-all comment's directory list. ## Questions for reviewers - **Release tests (ml team):** this removes `air_example_dreambooth_finetuning` and `air_example_dreambooth_finetuning_lora`. They're manual-only and jailed, and their sources go away with this directory. If you'd rather keep the test definitions as a placeholder for the rebuilt example, say so and I'll restore them. - **External links:** these templates were promoted publicly around Ray 2.6, so blog posts or course material might link to `github.com/ray-project/ray/tree/master/doc/source/templates/...`. This PR is a clean delete. If maintainers would prefer a tombstone `README.md` pointing at the Train examples gallery, I can add one. ## Related PRs Once this merges, the following open Dependabot PRs target manifests that no longer exist and can be closed: #65851, #65850, #64851, #64850, #64002, #64001, #62417, #62418, #56096, #54423, #55301. ## Duplicate check Searched open PRs for `doc/source/templates` and `dreambooth`. The only matches are the Dependabot bumps listed above, #67006 (my own in-tree-links sweep, which deliberately leaves this directory alone), and #66880 (touches `release_tests.yaml` but not the DreamBooth entries). ## Testing - `rayci test-rules` (built from `ray-project/rayci`) against the updated `.buildkite/test.rules.txt` and `test.rules.test.txt`: 177/177 cases pass. Flipping one new case to a wrong expectation makes it fail, confirming the case is live. - `git grep` for `doc/source/templates`, each template directory name, and `air_example_dreambooth` returns no matches outside `_templates/`. - `conf.py` parses, and `release/release_tests.yaml` loads with `yaml.safe_load`. - `pre-commit` passes on the changed files, including buildifier on `doc/BUILD.bazel` and the master-link resolution check. - The docs build runs on this PR's Read the Docs preview. 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
About 75 links in
doc/source/point back to the Ray docs through absolutedocs.ray.ioURLs instead of in-tree references. They pin readers to/en/latestor/en/masterregardless of which version they're reading, and a few pin toreleases-2.7.0andreleases-2.48.0and 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 theray-core/tocore/move.This PR replaces them with in-tree references:
.md/.ipynbpaths, with heading anchors where the original linked a section.{ref}labels where the original anchor no longer exists as a heading. Examples aresystem-metrics,application-level-metrics,serve-cli, andserve-in-production-config-file.{doc}for rST targets, perdoc/AGENTS.md.{func}and{class}for API reference pages:ray.remote,ray.serve.start, andServeApplicationSchema.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:
doc/source/templates/. It's excluded from the build and slated for removal.serve/tutorials/video-analysis/andtrain/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
make -C doc rtd-build, which runssphinx-build -a -E -W --keep-goingwith Python 3.11 and the docs lock. Result:build succeeded., exit 0, and no Sphinx warnings under-W. The onlyWARNINGlines in the log are RLlib's own logger output fromcompression.pyanddistributions.py._build/html. For example,kuberay/user-guides/tls.htmlnow links../../core/configure.html#tls-authentication, andserve/advanced-guides/grpc-guide.htmllinks../api/cli.html#serve-cliand theray.serve.startreference page.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