Skip to content

[doc][core] Regroup advanced topics into task-based subtrees - #66850

Draft
dstrodtman wants to merge 4 commits into
masterfrom
doc-1711-core-ia-regroup
Draft

dstrodtman wants to merge 4 commits into
masterfrom
doc-1711-core-ia-regroup

Conversation

@dstrodtman

@dstrodtman dstrodtman commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Why are these changes needed?

The Ray Core Advanced topics page lists 12 unrelated pages from the root of doc/source/core/. Several of them aren't advanced, such as Starting Ray and Tips for first-time users. Several others belong with a topic that already has its own section, such as generators with tasks and namespaces with named actors. configure.md lives in the Core directory, but only the contributor guide's toctree lists it, so it doesn't appear in any user-facing navigation. It and Head node memory management are cluster configuration that applies to every deployment and workload, which is the scope of the cluster docs.

This PR regroups those pages by task, and moves the two cluster configuration pages into the cluster docs. It changes paths, repoints the relative links and the doctest entry that the moves break, and otherwise leaves page content alone. A follow-up PR will split up miscellaneous.md, which mixes four unrelated topics, and add cross-links between related pages.

This is a draft so the Core team, which also owns the cluster docs, can review the proposed grouping as a concrete diff. Feedback on where each page should live is the main thing this PR needs.

What changed

File moves

Each move keeps git history. Git detects all five as renames.

Old path New path
core/ray-generator.md core/tasks/ray-generator.md
core/namespaces.md core/actors/namespaces.md
core/ray-dag.md core/compiled-graph/ray-dag.md
core/configure.md cluster/configure.md
core/head-node-memory-management.md cluster/head-node-memory-management.md

In the cluster docs, both pages sit in the top-level toctree next to the deployment-agnostic Configuring and managing Ray dashboard page, rather than under the VM or Kubernetes branches.

Navigation-only changes

These pages keep their URLs:

  • Starting Ray, Tips for first-time users, and Use Ray with Jupyter Notebook and JupyterLab move from Advanced topics to the top of the User guides toctree.
  • Authenticate remote URIs in runtime_env now sits under Environment dependencies in the nav. The file stays in place.
  • configure leaves the contributor guide's toctree.

Advanced topics now lists type-hint, cross-language, user-spawn-processes, and miscellaneous.

Naming notes

  • The generator page keeps its ray-generator slug. The name tasks/generators would duplicate the slug of patterns/generators.md.
  • doc_code/ literalinclude paths in the moved pages are rebased for the new directory depth. Relative links into and out of the moved pages are repointed: the {doc} link from cluster/configure.md to the Core API index (now ../core/api/index), the configuration link in core/starting-ray.md, the Serve and Compiled Graph profiling links in core/compiled-graph/ray-dag.md, the dynamic-generators toctree entry in core/tasks/ray-generator.md, and the configure.md links in kuberay/ecosystem/istio.md and kuberay/user-guides/tls.md.

Redirects

doc/redirects/current.yaml gains 10 page rules. Each old path gets a one-hop rule from both /core/<page>.html and the pre-move /ray-core/<page>.html. No existing rule is repointed.

Remaining absolute docs.ray.io/.../ray-core/configure.html links in a KubeRay config comment, a notebook comment, and src/ray/raylet/worker_pool.cc resolve through these redirects. This PR leaves them unchanged so that it stays limited to docs and doc test wiring.

Verification

  • Full RtD-faithful build. On an earlier revision, before the link and doctest fixes, make -C doc rtd-build in a fresh Python 3.11 venv from doc/requirements-doc.lock.txt reported build succeeded. with exit 0, which means zero Sphinx warnings under -W. The Read the Docs preview build passes on the current head.
  • Redirect validation, earlier revision. rtd-redirects validate doc/redirects/current.yaml reported 0 errors and 0 warnings. Chain notes went from 183 to 191, from the expected two-hop paths through older rules.
  • Redirect simulation, earlier revision. rtd-redirects simulate with --prefix /core/ --prefix /ray-core/ --prefix /cluster/ --git-renames doc/source against master, latest, releases-2.50.0, and releases-2.40.0 reported 0 regressions, 0 wrong landings, and 0 new loops on every version. Replaying the 10 old URLs explicitly shows each one reaching its new page in 1 hop on master. On latest and older releases the rules don't fire, because those versions still serve the old pages.
  • Doctests. Core prose pages each have a per-file doctest target, listed in doc/BUILD.bazel. This PR moves configure.md's entry in the Core doctest_each list to source/cluster/configure.md, so its testcode blocks stay tested. None of the other moved pages is in a doctest list. I didn't run the Bazel doctest target locally.

Duplicate check

I searched open PRs that touch doc/source/core/. None of them moves or regroups these pages, or edits advanced-topics.md, configure.md, or the toctrees changed here.

AI assistance

I prepared this PR with AI assistance (Claude Code). I reviewed every changed line and ran the verification above.

🤖 Generated with Claude Code

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 force-pushed the doc-1711-core-ia-regroup branch from c0613e8 to 0ed9efe Compare October 20, 2026 14:00
dstrodtman and others added 2 commits October 29, 2026 16:35
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman
dstrodtman force-pushed the doc-1711-core-ia-regroup branch from 0ed9efe to 3a8b6b8 Compare October 29, 2026 20:42
dstrodtman and others added 2 commits October 30, 2026 15:42
…moves

Register cluster/configure.md in the Core doctest list at its new path,
and repoint the relative links in compiled-graph/ray-dag.md and
kuberay/user-guides/tls.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

You can always ask for help on our discussion forum or Ray's public slack channel.

If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@github-actions github-actions Bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Nov 18, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale The issue is stale. It will be closed within 7 days unless there are further conversation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant