Skip to content

[doc] Add curated page descriptions for the remaining llms.txt pages - #65115

Merged
dstrodtman merged 4 commits into
masterfrom
doc-1130-page-descriptions-remaining
Aug 10, 2026
Merged

dstrodtman merged 4 commits into
masterfrom
doc-1130-page-descriptions-remaining

Conversation

@ronny-anyscale

@ronny-anyscale ronny-anyscale commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Completes the page-description work #64330 started, so that every page listed in llms.txt carries a curated description.

#64330 (merged) described the 94 pages that made up the index when it listed only each section's landing page plus its direct toctree children. The generator in #64458 makes the index complete — every in-scope page under its section — so the index now carries ~630 entries, and the ~400 that #64330 didn't cover fall back to a truncated first paragraph.

That fallback is often actively bad for an agent routing on it. Of the 397 undescribed pages:

Fallback problem Pages Example
No paragraph at all 22 cluster/kubernetes/troubleshooting
Pointer prose 34 cluster/cli → "This section contains commands for managing Ray clusters."
Restates the title 117 every ray-core/patterns/* anti-pattern page
Under 70 chars 170 data/inspecting-data → "Inspect Datasets to better understand your data."

Changes

  • 368 pages get a curated description, following the convention [doc] Add curated page descriptions for nav pages (SEO + llms.txt) #64330 established: myst: html_meta: description: front matter for .md (164 files), and a .. meta:: directive for .rst (204 files). The .rst block is placed after any leading docinfo field list (:orphan: and friends) but before any .. _label: target, so the label still resolves to the section title.
  • 31 pages are excluded instead (conf.py). These are thin API-reference hub pages — a title plus an autosummary table, under 40 words of real prose — whose per-symbol targets are already excluded by the existing */api/doc/* patterns. Also data/api/_autogen (no title at all) and two *_regression_example literalinclude stubs with zero prose. A description on any of these could only restate its title.

Style follows the same house rule as #64330: 130–150 characters, front-loading what distinguishes the page, no "Ray X is a…" restatement of the link title. Mean length 122 chars, none over 160.

Substantial API-reference pages were kept and described, not excluded — tune/api/schedulers (965 words of prose), tune/api/env, tune/api/trainable, serve/api/index, data/api/expressions are exactly what a coding agent wants.

Result: 479 in-scope pages described, 31 excluded, 0 relying on first-paragraph fallback.

Relationship to other PRs

Independent of #64458 (the generator). Descriptions are page front matter and work with the current third-party sphinx-llms-txt on master as well as the in-repo generator. The one file both touch is doc/source/conf.py: this PR appends a llms_txt_exclude += [...] block below the existing list rather than editing the list literal, which is what #64458 rewrites, so the two shouldn't collide. Either can merge first.

Not a duplicate: gh pr list --state open finds no other PR adding page descriptions or html_meta blocks. #64330, the only prior art, is merged.

Rebased on master

Merged master to clear a conflict. Two pages shifted:

  • cluster/kubernetes/user-guides/kuberay-history-server.md no longer appears in this diff. [doc][History server] Update History server documentation #65139 described that page independently while this branch was open, and its description is the better one: this branch's scoped the page to GKE and Google Cloud Storage, where master's covers RayCluster, RayJob, and RayService, which is the page's actual scope. Resolved in favor of master.
  • ray-observability/user-guides/jax-tpu-profiling.md is newly described. It landed on master after this branch was cut and was the one in-scope page still falling back to a truncated first paragraph.

Net file count is 368 newly described pages plus conf.py, plus one re-key:
ray-core/scheduling/labels.md carried a bare top-level description: in its front matter, the only such file in the tree. Sphinx emits no meta description from that key, so despite looking described the page fed neither the HTML meta tag nor llms.txt. The text is unchanged; only the key moves under myst.html_meta. That page was already counted as described, so the totals above don't move.

Testing

Local verification (no Ray build required — these are doc source edits):

$ python3 doc/test_no_new_rst.py                       # exit 0 (no new .rst files; all 204 are edits)
$ vale doc/source/data doc/source/ray-overview/examples
  174 alerts, 0 error-level, 0 on the added lines
  identical to the master baseline (174 alerts) — this change adds no Vale alerts
$ python3 -c "import ast; ast.parse(open('doc/source/conf.py').read())"   # conf.py parses

Plus scripted checks over all 370 changed files:

  • All 164 .md front-matter blocks parse as YAML and expose myst.html_meta.description.
  • All 204 .rst files: .. meta:: precedes any .. _label:, and any docinfo field list still precedes the .. meta:: block.
  • Re-running the in-scope inventory: 510 pages, 479 described, 31 excluded, 0 gaps.
  • The 31 entries added to llms_txt_exclude match the computed exclude set exactly.

The -W docs build is the real end-to-end gate and runs in CI here.

AI assistance

Drafted with Claude Code: the descriptions were generated from each page's title, headings, and lead prose, and applied by script. Per AGENTS.md, this needs a human pass over the content before it's ready for review — opening as a draft for that reason. The mechanical placement is verified by the checks above; what needs human eyes is whether each description is accurate and useful for its page.

#64330 described the 94 pages that made up the llms.txt index when the index
listed only each section's landing page and its direct toctree children. The
generator in #64458 lists every in-scope page per section, so the index now
carries ~630 entries and the other ~400 fall back to a truncated first
paragraph. That fallback is frequently useless for routing: 22 pages produce no
paragraph at all, 34 lead with pointer prose ("This section contains commands
for..."), and 117 merely restate the page title.

Describe the remaining 368 in-scope pages, following the convention #64330
established: `myst: html_meta: description:` front matter for .md, a `.. meta::`
directive for .rst placed after any leading docinfo field list but before any
`.. _label:` target, so the label still resolves to the section title. One
string serves both llms.txt routing and the SEO meta/OpenGraph snippet.

Exclude 31 pages instead of describing them. These are thin API-reference hub
pages -- a title plus an autosummary table, under 40 words of real prose --
whose per-symbol targets are already excluded via the `*/api/doc/*` patterns,
plus `data/api/_autogen` (no title at all) and two literalinclude stubs with
zero prose. A description on one of these could only restate its title.

Every in-scope page now carries a curated description: 478 described,
31 excluded, 0 falling back to first-paragraph text.

Signed-off-by: Ronny Roland <[email protected]>
@ronny-anyscale
ronny-anyscale marked this pull request as ready for review July 29, 2026 22:49
@ronny-anyscale
ronny-anyscale requested review from a team and andrewsykim as code owners July 29, 2026 22:49

@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 adds HTML metadata descriptions to a large number of documentation files across Ray Core, Ray Data, Ray Serve, RLlib, and Kubernetes guides to improve search engine optimization and discoverability. It also updates doc/source/conf.py to exclude thin API-reference hub pages from the LLM-friendly text index. The review feedback identifies two typographical errors in the newly added descriptions: NIXL should be corrected to vLLM in the troubleshooting guide, and NIXLConnector should be corrected to vLLMConnector in the prefill-decode user guide.

---
myst:
html_meta:
description: "Common Ray Serve LLM issues: gated Hugging Face models, slow model downloads, vLLM compatibility, and NIXL dependency conflicts."

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.

medium

The term NIXL appears to be a typographical error (likely a visual/OCR or generation artifact) for vLLM. It should be corrected to vLLM to ensure accuracy and clarity for users reading the page description.

Suggested change
description: "Common Ray Serve LLM issues: gated Hugging Face models, slow model downloads, vLLM compatibility, and NIXL dependency conflicts."
description: "Common Ray Serve LLM issues: gated Hugging Face models, slow model downloads, vLLM compatibility, and vLLM dependency conflicts."

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.

Not a typo. NIXL is the NVIDIA Inference Xfer Library, a real component and distinct from vLLM. The page documents it under ### vLLM NIXL EP dependency incompatibility, and the body refers to the nixl_ep package by name. The description is accurate as written.

---
myst:
html_meta:
description: "Deploy Ray Serve LLM with separated prefill and decode phases using NIXLConnector or LMCacheConnectorV1."

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.

medium

The term NIXLConnector appears to be a typographical error for vLLMConnector. It should be corrected to vLLMConnector to ensure the page description is accurate.

Suggested change
description: "Deploy Ray Serve LLM with separated prefill and decode phases using NIXLConnector or LMCacheConnectorV1."
description: "Deploy Ray Serve LLM with separated prefill and decode phases using vLLMConnector or LMCacheConnectorV1."

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.

Not a typo. NIXLConnector is a real connector, named for the NVIDIA Inference Xfer Library (NIXL). The page documents it in ## Deploy with NIXLConnector and describes it as "Network-based KV cache transfer using NVIDIA Inference Xfer Library (NIXL)". There's no vLLMConnector. The description is accurate as written.

@ray-gardener ray-gardener Bot added docs An issue or change related to documentation core Issues that should be addressed in Ray Core labels Jul 30, 2026
Resolves the kuberay-history-server.md description conflict in favor of
master's version, added by #65139 when the History Server team updated
that page. The branch's description scoped the page to GKE and Google
Cloud Storage; master's covers RayCluster, RayJob, and RayService, which
matches the page's actual scope.

Signed-off-by: Douglas Strodtman <[email protected]>
Restores the zero-gap invariant this branch establishes: the page landed
on master after the branch point, so it was the one in-scope page still
falling back to a truncated first paragraph.

Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman dstrodtman changed the title [doc] Add curated page descriptions for the remaining llms.txt pages (DOC-1130) [doc] Add curated page descriptions for the remaining llms.txt pages Aug 10, 2026
The page carried a bare top-level `description:` in its front matter,
the only such file in the tree. Sphinx emits no meta description from
that key, so despite looking described the page fed neither the HTML
meta tag nor llms.txt. Text is unchanged; only the key moves.

Signed-off-by: Douglas Strodtman <[email protected]>

@dstrodtman dstrodtman 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.

LGTM

@dstrodtman dstrodtman added go add ONLY when ready to merge, run all tests docs-go RtD-only checks for docs-only changes. Doesn't run full library doc-test suites. labels Aug 10, 2026
@dstrodtman
dstrodtman merged commit 630565b into master Aug 10, 2026
7 checks passed
@dstrodtman
dstrodtman deleted the doc-1130-page-descriptions-remaining branch August 10, 2026 18:10
Artimislyy pushed a commit to Artimislyy/ray that referenced this pull request Aug 11, 2026
…ay-project#65115)

## Summary

Completes the page-description work
[ray-project#64330](ray-project#64330) started, so that
**every page listed in `llms.txt` carries a curated description**.

ray-project#64330 (merged) described the 94 pages that made up the index when it
listed only each section's landing page plus its direct toctree
children. The generator in
[ray-project#64458](ray-project#64458) makes the index
complete — every in-scope page under its section — so the index now
carries ~630 entries, and the ~400 that ray-project#64330 didn't cover fall back to
a truncated first paragraph.

That fallback is often actively bad for an agent routing on it. Of the
397 undescribed pages:

| Fallback problem | Pages | Example |
|---|---:|---|
| No paragraph at all | 22 | `cluster/kubernetes/troubleshooting` |
| Pointer prose | 34 | `cluster/cli` → "This section contains commands
for managing Ray clusters." |
| Restates the title | 117 | every `ray-core/patterns/*` anti-pattern
page |
| Under 70 chars | 170 | `data/inspecting-data` → "Inspect Datasets to
better understand your data." |

## Changes

- **368 pages get a curated description**, following the convention
ray-project#64330 established: `myst: html_meta: description:` front matter for
`.md` (164 files), and a `.. meta::` directive for `.rst` (204 files).
The `.rst` block is placed after any leading docinfo field list
(`:orphan:` and friends) but **before** any `.. _label:` target, so the
label still resolves to the section title.
- **31 pages are excluded instead** (`conf.py`). These are thin
API-reference hub pages — a title plus an autosummary table, under 40
words of real prose — whose per-symbol targets are already excluded by
the existing `*/api/doc/*` patterns. Also `data/api/_autogen` (no title
at all) and two `*_regression_example` literalinclude stubs with zero
prose. A description on any of these could only restate its title.

Style follows the same house rule as ray-project#64330: 130–150 characters,
front-loading what distinguishes the page, no "Ray X is a…" restatement
of the link title. Mean length 122 chars, none over 160.

Substantial API-reference pages were **kept and described**, not
excluded — `tune/api/schedulers` (965 words of prose), `tune/api/env`,
`tune/api/trainable`, `serve/api/index`, `data/api/expressions` are
exactly what a coding agent wants.

**Result: 479 in-scope pages described, 31 excluded, 0 relying on
first-paragraph fallback.**

## Relationship to other PRs

Independent of **ray-project#64458** (the generator). Descriptions are page front
matter and work with the current third-party `sphinx-llms-txt` on master
as well as the in-repo generator. The one file both touch is
`doc/source/conf.py`: this PR appends a `llms_txt_exclude += [...]`
block below the existing list rather than editing the list literal,
which is what ray-project#64458 rewrites, so the two shouldn't collide. Either can
merge first.

Not a duplicate: `gh pr list --state open` finds no other PR adding page
descriptions or `html_meta` blocks. ray-project#64330, the only prior art, is
merged.

## Rebased on master

Merged master to clear a conflict. Two pages shifted:

- `cluster/kubernetes/user-guides/kuberay-history-server.md` no longer
appears in this diff. ray-project#65139 described that page independently while
this branch was open, and its description is the better one: this
branch's scoped the page to GKE and Google Cloud Storage, where master's
covers RayCluster, RayJob, and RayService, which is the page's actual
scope. Resolved in favor of master.
- `ray-observability/user-guides/jax-tpu-profiling.md` is newly
described. It landed on master after this branch was cut and was the one
in-scope page still falling back to a truncated first paragraph.

Net file count is 368 newly described pages plus `conf.py`, plus one
re-key:
`ray-core/scheduling/labels.md` carried a bare top-level `description:`
in its front matter, the only such file in the tree. Sphinx emits no
meta description from that key, so despite looking described the page
fed neither the HTML meta tag nor `llms.txt`. The text is unchanged;
only the key moves under `myst.html_meta`. That page was already counted
as described, so the totals above don't move.

## Testing

Local verification (no Ray build required — these are doc source edits):

```
$ python3 doc/test_no_new_rst.py                       # exit 0 (no new .rst files; all 204 are edits)
$ vale doc/source/data doc/source/ray-overview/examples
  174 alerts, 0 error-level, 0 on the added lines
  identical to the master baseline (174 alerts) — this change adds no Vale alerts
$ python3 -c "import ast; ast.parse(open('doc/source/conf.py').read())"   # conf.py parses
```

Plus scripted checks over all 370 changed files:

- All 164 `.md` front-matter blocks parse as YAML and expose
`myst.html_meta.description`.
- All 204 `.rst` files: `.. meta::` precedes any `.. _label:`, and any
docinfo field list still precedes the `.. meta::` block.
- Re-running the in-scope inventory: 510 pages, 479 described, 31
excluded, **0 gaps**.
- The 31 entries added to `llms_txt_exclude` match the computed exclude
set exactly.

The `-W` docs build is the real end-to-end gate and runs in CI here.

## AI assistance

Drafted with Claude Code: the descriptions were generated from each
page's title, headings, and lead prose, and applied by script. Per
`AGENTS.md`, this needs a human pass over the content before it's ready
for review — **opening as a draft for that reason**. The mechanical
placement is verified by the checks above; what needs human eyes is
whether each description is accurate and useful for its page.

---------

Signed-off-by: Ronny Roland <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Douglas Strodtman <[email protected]>
dstrodtman added a commit to dstrodtman/ray that referenced this pull request Aug 11, 2026
ray-project#65115 curated a description for this page while this branch was open.
Keeping master's, which fits the 130-150 character house rule that pass
established; this branch's was 209 characters.

Signed-off-by: Douglas Strodtman <[email protected]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
…ay-project#65115)

## Summary

Completes the page-description work
[ray-project#64330](ray-project#64330) started, so that
**every page listed in `llms.txt` carries a curated description**.

ray-project#64330 (merged) described the 94 pages that made up the index when it
listed only each section's landing page plus its direct toctree
children. The generator in
[ray-project#64458](ray-project#64458) makes the index
complete — every in-scope page under its section — so the index now
carries ~630 entries, and the ~400 that ray-project#64330 didn't cover fall back to
a truncated first paragraph.

That fallback is often actively bad for an agent routing on it. Of the
397 undescribed pages:

| Fallback problem | Pages | Example |
|---|---:|---|
| No paragraph at all | 22 | `cluster/kubernetes/troubleshooting` |
| Pointer prose | 34 | `cluster/cli` → "This section contains commands
for managing Ray clusters." |
| Restates the title | 117 | every `ray-core/patterns/*` anti-pattern
page |
| Under 70 chars | 170 | `data/inspecting-data` → "Inspect Datasets to
better understand your data." |

## Changes

- **368 pages get a curated description**, following the convention
ray-project#64330 established: `myst: html_meta: description:` front matter for
`.md` (164 files), and a `.. meta::` directive for `.rst` (204 files).
The `.rst` block is placed after any leading docinfo field list
(`:orphan:` and friends) but **before** any `.. _label:` target, so the
label still resolves to the section title.
- **31 pages are excluded instead** (`conf.py`). These are thin
API-reference hub pages — a title plus an autosummary table, under 40
words of real prose — whose per-symbol targets are already excluded by
the existing `*/api/doc/*` patterns. Also `data/api/_autogen` (no title
at all) and two `*_regression_example` literalinclude stubs with zero
prose. A description on any of these could only restate its title.

Style follows the same house rule as ray-project#64330: 130–150 characters,
front-loading what distinguishes the page, no "Ray X is a…" restatement
of the link title. Mean length 122 chars, none over 160.

Substantial API-reference pages were **kept and described**, not
excluded — `tune/api/schedulers` (965 words of prose), `tune/api/env`,
`tune/api/trainable`, `serve/api/index`, `data/api/expressions` are
exactly what a coding agent wants.

**Result: 479 in-scope pages described, 31 excluded, 0 relying on
first-paragraph fallback.**

## Relationship to other PRs

Independent of **ray-project#64458** (the generator). Descriptions are page front
matter and work with the current third-party `sphinx-llms-txt` on master
as well as the in-repo generator. The one file both touch is
`doc/source/conf.py`: this PR appends a `llms_txt_exclude += [...]`
block below the existing list rather than editing the list literal,
which is what ray-project#64458 rewrites, so the two shouldn't collide. Either can
merge first.

Not a duplicate: `gh pr list --state open` finds no other PR adding page
descriptions or `html_meta` blocks. ray-project#64330, the only prior art, is
merged.

## Rebased on master

Merged master to clear a conflict. Two pages shifted:

- `cluster/kubernetes/user-guides/kuberay-history-server.md` no longer
appears in this diff. ray-project#65139 described that page independently while
this branch was open, and its description is the better one: this
branch's scoped the page to GKE and Google Cloud Storage, where master's
covers RayCluster, RayJob, and RayService, which is the page's actual
scope. Resolved in favor of master.
- `ray-observability/user-guides/jax-tpu-profiling.md` is newly
described. It landed on master after this branch was cut and was the one
in-scope page still falling back to a truncated first paragraph.

Net file count is 368 newly described pages plus `conf.py`, plus one
re-key:
`ray-core/scheduling/labels.md` carried a bare top-level `description:`
in its front matter, the only such file in the tree. Sphinx emits no
meta description from that key, so despite looking described the page
fed neither the HTML meta tag nor `llms.txt`. The text is unchanged;
only the key moves under `myst.html_meta`. That page was already counted
as described, so the totals above don't move.

## Testing

Local verification (no Ray build required — these are doc source edits):

```
$ python3 doc/test_no_new_rst.py                       # exit 0 (no new .rst files; all 204 are edits)
$ vale doc/source/data doc/source/ray-overview/examples
  174 alerts, 0 error-level, 0 on the added lines
  identical to the master baseline (174 alerts) — this change adds no Vale alerts
$ python3 -c "import ast; ast.parse(open('doc/source/conf.py').read())"   # conf.py parses
```

Plus scripted checks over all 370 changed files:

- All 164 `.md` front-matter blocks parse as YAML and expose
`myst.html_meta.description`.
- All 204 `.rst` files: `.. meta::` precedes any `.. _label:`, and any
docinfo field list still precedes the `.. meta::` block.
- Re-running the in-scope inventory: 510 pages, 479 described, 31
excluded, **0 gaps**.
- The 31 entries added to `llms_txt_exclude` match the computed exclude
set exactly.

The `-W` docs build is the real end-to-end gate and runs in CI here.

## AI assistance

Drafted with Claude Code: the descriptions were generated from each
page's title, headings, and lead prose, and applied by script. Per
`AGENTS.md`, this needs a human pass over the content before it's ready
for review — **opening as a draft for that reason**. The mechanical
placement is verified by the checks above; what needs human eyes is
whether each description is accurate and useful for its page.

---------

Signed-off-by: Ronny Roland <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Douglas Strodtman <[email protected]>
Signed-off-by: 400Ping <[email protected]>
dstrodtman added a commit that referenced this pull request Aug 28, 2026
## Why

The [KubeRay v1.7 blog](https://www.anyscale.com/blog/kuberay-v1-7)
highlights several features whose docs currently live only on `master`.
The corresponding pages are missing (404) or incomplete on the `latest`
(2.58.0) docs build, and several blog links point at `/master` as a
result. This backports the doc pages so the 2.58.0 `latest` docs cover
the released KubeRay v1.7 surface.

## What (cherry-picks onto `releases/2.58.0`)

| Commit | Blog feature | Gap on `latest` |
|---|---|---|
| #64303 | RayJob `SidecarMode` retry | new page was missing |
| #65249 | RayService incremental upgrade rollback (beta) | `#rollback`
section missing |
| #65074 | NetworkPolicy support (alpha) | new page was missing |
| #65429 | Embedded RocksDB GCS backend | example version pin missing |
| #65513 | Fix docs for KubeRay v1.7 | wrong NetworkPolicy field names +
incorrect `kubernetes` pip guidance |
| #65483 | Customizable Ingress options | `ingressOptions` undocumented
|

Each commit is applied with `cherry-pick -x` (provenance preserved) and
DCO sign-off.

## Not duplicating

- No open PR cherry-picks these into `releases/2.58.0` (checked by PR
number and by `--base releases/2.58.0`).
- The two History Server refinements (#65441, #65505) are intentionally
**excluded** — they already landed on `releases/2.58.0` (`c6061c10b97`,
`d8277b53b0d`) and that page is already identical to `master`.
- Broad, non-feature changes touching these files on `master` (llms.txt
page descriptions #65115, the "Ray Pod" terminology rename #65423, the
vendored CRD API reference #65428) are deliberately left out to keep
this a tight, low-risk release-branch backport.

## Testing

- Verified every new/changed page's `{ref}`/`{doc}` cross-reference
target resolves on this branch (`fail_on_warning: true` build safety).
- Verified both new toctree entries (`network-policy`,
`rayjob-sidecar-submitter-restart`) point at files that exist on the
branch.
- Confirmed each touched file matches `master` except for the
intentionally-excluded frontmatter/rename hunks above.
- A full local Sphinx docs build is recommended before marking ready for
review.

AI assistance (Claude Code) was used to prepare this backport.

---------

Signed-off-by: justinyeh1995 <[email protected]>
Signed-off-by: Justin Yeh <[email protected]>
Signed-off-by: JustinYeh <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
Signed-off-by: win5923 <[email protected]>
Signed-off-by: Paul Nolan <[email protected]>
Signed-off-by: machichima <[email protected]>
Signed-off-by: wuallen57730 <[email protected]>
Co-authored-by: JustinYeh <[email protected]>
Co-authored-by: Jun-Hao Wan <[email protected]>
Co-authored-by: Pat O'Connor <[email protected]>
Co-authored-by: David Adamache <[email protected]>
Co-authored-by: Paul Nolan <[email protected]>
Co-authored-by: Nary Yeh <[email protected]>
Co-authored-by: Lima <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…ay-project#65115)

## Summary

Completes the page-description work
[ray-project#64330](ray-project#64330) started, so that
**every page listed in `llms.txt` carries a curated description**.

ray-project#64330 (merged) described the 94 pages that made up the index when it
listed only each section's landing page plus its direct toctree
children. The generator in
[ray-project#64458](ray-project#64458) makes the index
complete — every in-scope page under its section — so the index now
carries ~630 entries, and the ~400 that ray-project#64330 didn't cover fall back to
a truncated first paragraph.

That fallback is often actively bad for an agent routing on it. Of the
397 undescribed pages:

| Fallback problem | Pages | Example |
|---|---:|---|
| No paragraph at all | 22 | `cluster/kubernetes/troubleshooting` |
| Pointer prose | 34 | `cluster/cli` → "This section contains commands
for managing Ray clusters." |
| Restates the title | 117 | every `ray-core/patterns/*` anti-pattern
page |
| Under 70 chars | 170 | `data/inspecting-data` → "Inspect Datasets to
better understand your data." |

## Changes

- **368 pages get a curated description**, following the convention
ray-project#64330 established: `myst: html_meta: description:` front matter for
`.md` (164 files), and a `.. meta::` directive for `.rst` (204 files).
The `.rst` block is placed after any leading docinfo field list
(`:orphan:` and friends) but **before** any `.. _label:` target, so the
label still resolves to the section title.
- **31 pages are excluded instead** (`conf.py`). These are thin
API-reference hub pages — a title plus an autosummary table, under 40
words of real prose — whose per-symbol targets are already excluded by
the existing `*/api/doc/*` patterns. Also `data/api/_autogen` (no title
at all) and two `*_regression_example` literalinclude stubs with zero
prose. A description on any of these could only restate its title.

Style follows the same house rule as ray-project#64330: 130–150 characters,
front-loading what distinguishes the page, no "Ray X is a…" restatement
of the link title. Mean length 122 chars, none over 160.

Substantial API-reference pages were **kept and described**, not
excluded — `tune/api/schedulers` (965 words of prose), `tune/api/env`,
`tune/api/trainable`, `serve/api/index`, `data/api/expressions` are
exactly what a coding agent wants.

**Result: 479 in-scope pages described, 31 excluded, 0 relying on
first-paragraph fallback.**

## Relationship to other PRs

Independent of **ray-project#64458** (the generator). Descriptions are page front
matter and work with the current third-party `sphinx-llms-txt` on master
as well as the in-repo generator. The one file both touch is
`doc/source/conf.py`: this PR appends a `llms_txt_exclude += [...]`
block below the existing list rather than editing the list literal,
which is what ray-project#64458 rewrites, so the two shouldn't collide. Either can
merge first.

Not a duplicate: `gh pr list --state open` finds no other PR adding page
descriptions or `html_meta` blocks. ray-project#64330, the only prior art, is
merged.

## Rebased on master

Merged master to clear a conflict. Two pages shifted:

- `cluster/kubernetes/user-guides/kuberay-history-server.md` no longer
appears in this diff. ray-project#65139 described that page independently while
this branch was open, and its description is the better one: this
branch's scoped the page to GKE and Google Cloud Storage, where master's
covers RayCluster, RayJob, and RayService, which is the page's actual
scope. Resolved in favor of master.
- `ray-observability/user-guides/jax-tpu-profiling.md` is newly
described. It landed on master after this branch was cut and was the one
in-scope page still falling back to a truncated first paragraph.

Net file count is 368 newly described pages plus `conf.py`, plus one
re-key:
`ray-core/scheduling/labels.md` carried a bare top-level `description:`
in its front matter, the only such file in the tree. Sphinx emits no
meta description from that key, so despite looking described the page
fed neither the HTML meta tag nor `llms.txt`. The text is unchanged;
only the key moves under `myst.html_meta`. That page was already counted
as described, so the totals above don't move.

## Testing

Local verification (no Ray build required — these are doc source edits):

```
$ python3 doc/test_no_new_rst.py                       # exit 0 (no new .rst files; all 204 are edits)
$ vale doc/source/data doc/source/ray-overview/examples
  174 alerts, 0 error-level, 0 on the added lines
  identical to the master baseline (174 alerts) — this change adds no Vale alerts
$ python3 -c "import ast; ast.parse(open('doc/source/conf.py').read())"   # conf.py parses
```

Plus scripted checks over all 370 changed files:

- All 164 `.md` front-matter blocks parse as YAML and expose
`myst.html_meta.description`.
- All 204 `.rst` files: `.. meta::` precedes any `.. _label:`, and any
docinfo field list still precedes the `.. meta::` block.
- Re-running the in-scope inventory: 510 pages, 479 described, 31
excluded, **0 gaps**.
- The 31 entries added to `llms_txt_exclude` match the computed exclude
set exactly.

The `-W` docs build is the real end-to-end gate and runs in CI here.

## AI assistance

Drafted with Claude Code: the descriptions were generated from each
page's title, headings, and lead prose, and applied by script. Per
`AGENTS.md`, this needs a human pass over the content before it's ready
for review — **opening as a draft for that reason**. The mechanical
placement is verified by the checks above; what needs human eyes is
whether each description is accurate and useful for its page.

---------

Signed-off-by: Ronny Roland <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Douglas Strodtman <[email protected]>
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 docs-go RtD-only checks for docs-only changes. Doesn't run full library doc-test suites. go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants