Repository navigation
[doc] Delete the orphaned _includes/_help.rst - #66750
Merged
Merged
Conversation
#66678 switched the YARN page, the last page that included _includes/_help.rst, to the existing Markdown copy, _help-links.md. That left _help.rst in no toctree and included by nothing, so Sphinx emits toc.not_included for it and fail_on_warning fails the docs build on master and on every docs PR preview. _help-links.md has the same content, so delete the orphaned RST copy. 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 removes a documentation section containing links to various community channels, including the Discussion Board, GitHub Issues, Ray Slack, and StackOverflow. There are no review comments, and I have no feedback to provide.
ronny-anyscale
approved these changes
Oct 5, 2026
7 tasks done
dstrodtman
added a commit
that referenced
this pull request
Oct 5, 2026
Signed-off-by: Douglas Strodtman <[email protected]>
10 tasks done
nadongjun
pushed a commit
to nadongjun/ray
that referenced
this pull request
Oct 6, 2026
## Why are these changes needed? The docs build on master is failing, and so is every docs PR preview, with a single warning (example: [master build 4526885](https://app.readthedocs.com/projects/anyscale-ray/builds/4526885/)): ``` doc/source/_includes/_help.rst: WARNING: document isn't included in any toctree [toc.not_included] ``` ray-project#66678 converted the YARN page to MyST and switched its include from `/_includes/_help.rst` to the existing Markdown copy, `/_includes/_help-links.md`. YARN was the last page that included `_help.rst`, so the file is now orphaned. `fail_on_warning: true` in `.readthedocs.yaml` turns the warning into a build failure. `_help-links.md` carries the same four help links with the same text, and every page that showed them now includes it. This PR deletes the orphaned RST copy. ## Verification - `grep -rn "_help.rst" doc/ ci/ .buildkite/ .readthedocs.yaml` returns no references. - This PR's own Read the Docs preview build confirms the warning is gone. 🤖 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
added a commit
that referenced
this pull request
Oct 6, 2026
…on (#66751) ## Why are these changes needed? Four API reference pages live outside the APIs tab, so the shared API sidebar and the `API_PATH_PREFIXES` page set don't include them. This PR moves them into `core/api/`: | Old path | New path | |---|---| | `ray-observability/reference/api.rst` | `core/api/state.rst` | | `cluster/running-applications/job-submission/jobs-package-ref.md` | `core/api/job-submission.md` | | `core/compiled-graph/compiled-graph-api.rst` | `core/api/compiled-graph.rst` | | `cluster/running-applications/autoscaling/reference.md` | `core/api/autoscaler.md` | This is a pure path change: all four files are 100% renames with no content edits. Everything else in the diff follows from the move: - **Navigation.** The Core API toctree (`core/api/index.md`) now lists all four pages. The old parent toctrees point at the new paths, so the pages stay reachable from their original sections. - **Redirects.** `doc/redirects/current.yaml` gains one `page` rule per moved page, plus wildcard rules for the generated per-symbol stubs, which move from each page's old `doc/` directory to `core/api/doc/`. All rules use the default `force: false`. Existing rules that point at the old paths are left alone, so older doc versions keep resolving them. - **Dead stub-directory patterns.** Only these four pages generated stubs into `ray-observability/reference/doc/`, `cluster/running-applications/job-submission/doc/`, and `core/compiled-graph/doc/`. Their entries in `conf.py` (`llms_txt_exclude`, `remove_from_toctrees`), the `doc/Makefile` `clean` target, and `doc/.gitignore` are removed. Existing `core/api/doc/*` patterns cover the new location. One side effect: the compiled graph stubs were missing from `remove_from_toctrees`, so they're now pruned like every other API stub. - **`doc_api` routing.** The `ray-observability/reference/` directory was in the `doc_api` rule only because the Core API toctree pulled in its `api.rst`. Now that the page lives in `core/api/`, the exception goes away in both `.buildkite/test.rules.txt` and `_ALLOWED_ONLY_IN_RULE` in `ci/pipeline/test_doc_api_rules_sync.py`. The remaining pages in that directory, `cli.rst` (`click` directives only), `index.md`, and `system-metrics.rst`, carry no `autosummary` or `autoclass` blocks, which are the only blocks the API consistency check parses. The `test.rules.test.txt` expectation moves to `core/api/state.rst`. **Effect on the Core API consistency check.** The check walks the toctree from `core/api/index.md`, so it now also reads the job submission and compiled graph pages. The autoscaler page uses `autofunction`, which the check doesn't parse. I ran the check's Sphinx-free doc parser (`ci/ray_ci/doc/autodoc.py`) over the new walk. It finds 188 documented APIs, and the only names documented twice are `ray.get`, `ray.put`, `ray.method`, and `ray.remote`, all already in Core's `intentional_duplicate_apis`. `ActorMethod.bind`, documented in both `core.rst` and the compiled graph page, is also already exempt. None of the newly walked classes resolves to a private module path. I couldn't run the code-side half of the check locally because it needs a compiled Ray, so premerge's `doc: check API doc consistency` step is the gate for that half. **Stacking.** This branch is stacked on #66605 (move Ray Core docs to `doc/source/core`), which touches the same surfaces: `api_sidebar.py`, `apis/index.md`, the redirects file, and the `doc_api` rules. Merge #66605 first. #66744 also edits `doc/redirects/current.yaml`, so expect a small rebase there. ## Related issue number None. This is groundwork for moving the API reference off Sphinx autodoc: every page the API reference generator needs to reproduce should live under an `API_PATH_PREFIXES` directory. ## Checks - [x] I've signed off every commit (DCO). - [x] Duplicate-work check: `gh pr list --repo ray-project/ray --state open --search "<area keywords>"` found no open PR moving these pages. The overlapping PRs are #66605, which this stacks on, and #66744, which only shares the redirects file. - [x] `bazel test //ci/pipeline:test_doc_api_rules_sync`: PASSED. - [x] `rtd-redirects validate doc/redirects/current.yaml`: 0 errors, 0 warnings. Chain notes went from 171 to 181, from the two-hop paths described above. - [x] Tag dry run (Ray's `determine_tests_to_run.py` reference parser): `core/api/state.rst` and `core/api/job-submission.md` emit `doc_api`, and `ray-observability/reference/{cli.rst,index.md}` hit the prose skip rule. - [x] `make -C doc rtd-build` (RtD-faithful, `-W --keep-going`, Python 3.11 and the docs lock): exactly one warning, `_includes/_help.rst: document isn't included in any toctree`. That orphan is in this branch's base (#66605) and was already deleted on master by #66750. With it removed locally, an incremental `-W` rebuild reports `build succeeded.` with zero warnings. The four pages render at `core/api/{state,job-submission,compiled-graph,autoscaler}.html`, and their 116 generated stubs render under `core/api/doc/`. - [x] `rtd-redirects simulate` against #66605 as the base, covering master (built HTML), latest, `releases-2.55.0`, and `releases-2.40.0`, with `--prefix` on all three old directories, sample stub URLs, and a stub rename map: **0 regressions and 0 new loops on every version.** It still exits nonzero, for two reasons I checked by hand: - On master, 35 old stub URLs are flagged as "wrong landings" only because the before side is a git tree, which has no generated stubs. All 35 land on the identical stub under `core/api/doc/` in one hop. - On every version, the synthetic sample stub (`__simulate-sample__`, a name that never existed) now lands on the Core API index instead of the observability landing page. Real stubs on older releases are still served directly, because the rules don't force. AI assistance (Claude Code) was used to prepare this change. I reviewed every changed line. Signed-off-by: Douglas Strodtman <[email protected]>
dstrodtman
added a commit
that referenced
this pull request
Oct 7, 2026
## Why are these changes needed? Fourteen guide pages and notebooks run Sphinx autodoc directly. Some of them repeat an API reference entry, and others are the only place an API is documented at all. This PR moves every one of those APIs into an API reference page under `API_PATH_PREFIXES` and replaces the guide-page directives with cross-references. After it merges, autodoc runs only on API reference pages, which is what a future move of the API reference off Sphinx autodoc needs. **New API reference entries** - **Ray integrations API** (`ray-more-libs/api/`, new): Ray on Spark (`setup_ray_cluster`, `shutdown_ray_cluster`, `setup_global_ray_cluster`), Ray Collective, and Dask on Ray (`RayDaskCallback` and its `_ray_*` hook methods). The section is registered in `API_PATH_PREFIXES`, the `doc_api` rule, the APIs landing toctree, and the `llms_txt_exclude` and `remove_from_toctrees` stub patterns. - Ray Collective lists everything the old `automodule ... :members:` rendered (26 documented functions in `ray.util.collective.collective`, plus `register_collective_backend`), grouped by purpose. Only `register_collective_backend` carries an annotation (`PublicAPI(stability="alpha")`), so Ray Core reviewers might want to trim internals such as `GroupManager` and `get_group_handle`. - **RLlib:** the nine algorithm-specific config classes (`PPOConfig` through `MARWILConfig`) go into `algorithm-config.rst`. They use the existing `class_without_autosummary.rst` template, so each class gets one page and no per-member stubs. `MemoryTrackingCallbacks` goes into `callback.rst`, also with the one-page template, and `OldAPIStack` into `utils.rst`. - **Ray Core:** `PublicAPI`, `DeveloperAPI`, and `Deprecated` go into a new "API stability annotations" section, and `AutoscalingCluster` into a new "Testing utilities" section, both in `core/api/utility.rst`. `ray.autoscaler.sdk.request_resources` loses its `:noindex:`, because it had no indexed entry anywhere. **Guide pages now cross-reference instead of rendering** `rllib/algorithms.md`, `rllib/callback.md`, `rllib/dev.md`, `ray-contribute/stability.md` (its `public-api-def` labels are kept), `ray-contribute/fake-autoscaler.md`, `core/miscellaneous.md`, `serve/advanced-guides/gang-scheduling.md`, `cluster/vms/user-guides/community/spark.md`, `ray-more-libs/ray-collective.md`, `ray-more-libs/dask-on-ray.md`, and the Aim, Comet, MLflow, and Wandb Tune notebooks. `DockerCluster` lives in `ray.autoscaler._private`, so instead of an API entry, `fake-autoscaler.md` now links to its source. **Redirects:** `/ray-more-libs/doc/*` → `/ray-more-libs/api/doc/:splat` covers the Dask stubs that moved. The other APIs were rendered inline on guide pages, so they had no standalone URL to redirect. **Base:** #66605 and #66751 have merged, so this PR is rebased onto master as a single commit. The content is unchanged from the version reviewed against #66751. ## Related issue number None. This follows up #66751. ## Checks - [x] I've signed off every commit (DCO). - [x] Duplicate-work check: `gh pr list --repo ray-project/ray --state open --search "<area keywords>"` found no open PR covering these moves. - [x] Autodoc census of `doc/source/` on this branch: no autodoc directive outside `API_PATH_PREFIXES` except a syntax example inside a code fence in `ray-contribute/docs.md`, which Sphinx never runs. - [x] I ran `ci/ray_ci/doc/autodoc.py`, the API consistency check's own doc parser, over the Core and RLlib walks. Every new entry parses to a resolvable dotted name. An early draft listed fully qualified names under an unrelated `currentmodule`, which the parser reads as unresolvable; each new block now sets its own `currentmodule`. The only duplicate names are ones already documented twice on master. I couldn't run the code-side half of the check locally, so premerge is the gate for that half. - [x] `bazel test //ci/pipeline:test_doc_api_rules_sync`: PASSED with the new `ray-more-libs/api/` prefix. - [x] Tag dry run: `ray-more-libs/api/*` emits `doc_api`, and the edited guide pages hit the prose skip rule. - [x] `rtd-redirects validate`: 0 errors. - [x] `make -C doc rtd-build` (RtD-faithful, `-W`), with the base branch's orphaned `_includes/_help.rst` set aside (#66750 already deleted it on master). The full build flagged one warning: `BCConfig` inherits `training()` from `MARWILConfig` rather than overriding it, so the BC line now links to the class and to `MARWILConfig.training()`. After that fix, an incremental `-W` rebuild reports `build succeeded.` I confirmed in the HTML that every new cross-reference resolves to its API page or stub. - [x] `MemoryTrackingCallbacks` uses the one-page template. The default template generated 20 stubs, almost all for members inherited from `RLlibCallback`, which would have shadowed the `RLlibCallback` entries. - [x] `rtd-redirects simulate` for the Dask stub rule on master, latest, and `releases-2.40.0`: no regressions, wrong landings, or new loops. Old stub URLs reach the new stubs in one hop. AI assistance (Claude Code) was used to prepare this change. I reviewed every changed line. Signed-off-by: Douglas Strodtman <[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?
The docs build on master is failing, and so is every docs PR preview, with a single warning (example: master build 4526885):
#66678 converted the YARN page to MyST and switched its include from
/_includes/_help.rstto the existing Markdown copy,/_includes/_help-links.md. YARN was the last page that included_help.rst, so the file is now orphaned.fail_on_warning: truein.readthedocs.yamlturns the warning into a build failure._help-links.mdcarries the same four help links with the same text, and every page that showed them now includes it. This PR deletes the orphaned RST copy.Verification
grep -rn "_help.rst" doc/ ci/ .buildkite/ .readthedocs.yamlreturns no references.🤖 Generated with Claude Code