Skip to content

[doc][DOC-943] add MyST xref + deplock-regen rules to doc agent context - #63354

Closed
dstrodtman wants to merge 6 commits into
ray-project:masterfrom
dstrodtman:doc-943-claude-md-followups
Closed

dstrodtman wants to merge 6 commits into
ray-project:masterfrom
dstrodtman:doc-943-claude-md-followups

Conversation

@dstrodtman

Copy link
Copy Markdown
Contributor

Why

Capture two authoring gotchas the next agent (or contributor) shouldn't have to rediscover. Both surfaced during the DOC-932 dependency-upgrade probe work in ray-project/ray:

  1. Cross-extension MyST refs. Linking from .md to a doc whose source is .rst via a bare [text](path.md) triggers MyST-Parser 2.0's myst.xref_missing warning. With fail_on_warning: true in .readthedocs.yaml, that's a build failure. Surfaced when the additive-extensions probe ([doc][DOC-933] add sphinxext-opengraph #63343) added 404.md with [home](index.md). The documented pattern is the {doc} role: {doc}`Ray documentation home page </index>`.
  2. Hand-edited lockfile fragility. The "edit one entry block plus via comments" pattern from [doc] add sphinx-llms-txt to generate /llms.txt and /llms-full.txt #63130 works for additive packages or pure version bumps. It misses transitive churn when a package's direct deps change. Surfaced when the pydata-sphinx-theme bump ([doc][DOC-934] bump pydata-sphinx-theme 0.14.1 -> 0.17.1 #63344) dropped packaging as a direct dep, but my hand-edit kept the stale # via pydata-sphinx-theme line under packaging — raydepsets --check caught it. For those cases, regenerate via bazelisk run //ci/raydepsets:raydepsets -- build ci/raydepsets/configs/docs.depsets.yaml.

What

Two short sections added to doc/.claude/CLAUDE.md, sitting between "When to revise the test rules" and "Skills" so the file's logical flow is preserved:

File stays under the 50-line budget at 42 lines.

Stacked on #63227

Branch doc-943-claude-md-followups is based on doc-879-ray-doc-claude-md (#63227's branch), so while #63227 is open this PR's diff shows both commits. When #63227 merges this narrows to just the two new sections.

Context

DOC-943 under epic DOC-932 (Ray docs dependency upgrades). Closes the agent-rule loop on the two stumbles I had on DOC-933 / DOC-934 so they're not repeated by the next probe.

🤖 Generated with Claude Code

dstrodtman and others added 3 commits May 8, 2026 09:15
## Why

Ray's per-library `.claude/CLAUDE.md` convention is in place for `data`,
`serve`, `train`, `tune`, `rllib`, and `src/ray`. `doc/` is missing this
file. Agents working on docs have no in-repo signal about how Ray's CI
is configured for documentation changes or how to scope PRs to land
cleanly.

## What

Adds `doc/.claude/CLAUDE.md` with concise pointers to:

- How `.buildkite/test.rules.txt` maps file patterns to tag sets, and
  which patterns the `doc` tag covers (post-ray-project#63132 shape).
- Scope discipline for docs-only PRs: take the lightest path; don't
  bundle in non-doc changes.
- When to revise test rules vs. work around them (precedent: ray-project#63132).
- Existing skills (`/lint`, `/fetch-buildkite-logs`, `/rebuild`).

Under 50 lines per the existing per-library convention.

## Context

Tracked under `DOC-879` in anyscale/docs Jira (private). Captures the
test-rule discipline that emerged during the docs-infra mapping work in
ray-project#63132.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
Capture two authoring gotchas the next agent (or contributor) shouldn't
have to rediscover. Both surfaced during the DOC-932 dependency-upgrade
probe work.

- **Cross-extension MyST refs.** Linking from `.md` to a doc whose
  source is `.rst` via a bare `[text](path.md)` triggers MyST-Parser
  2.0's `myst.xref_missing` warning, which `fail_on_warning: true` in
  `.readthedocs.yaml` turns into a build failure. Surfaced when the
  additive-extensions probe (ray-project#63343) added a `404.md` with
  `[home](index.md)`. The documented pattern is the `{doc}` role.
- **Hand-edited lockfile fragility.** The "edit one entry block plus
  via comments" pattern from ray-project#63130 works for additive packages or
  pure version bumps. It misses transitive churn when a package's
  direct deps change. Surfaced when the pydata-sphinx-theme bump
  (ray-project#63344) dropped `packaging` as a direct dep but my hand-edit kept
  the stale `# via pydata-sphinx-theme` under `packaging`'s entry —
  `raydepsets --check` caught it. For those cases, regenerate via
  bazelisk against `docs.depsets.yaml`.

Both sit between "When to revise the test rules" and "Skills" so the
file's logical flow is preserved. File stays under the 50-line budget
(42 lines).

Stacked on ray-project#63227 (`doc/.claude/CLAUDE.md` initial add). When ray-project#63227
merges, this PR's diff narrows to just the two new sections.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman
dstrodtman requested a review from a team as a code owner May 15, 2026 00:05

@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 introduces a new CLAUDE.md configuration file in the doc/.claude/ directory to provide specific instructions for AI agents working on Ray documentation. The file covers CI configuration, PR scope discipline, cross-referencing rules between Markdown and reStructuredText, and procedures for editing documentation lockfiles. Feedback was provided to clarify the Markdown link syntax and improve the formatting of technical terms to ensure the instructions are unambiguous for the agent.

Comment thread doc/.claude/CLAUDE.md Resolved
@ray-gardener ray-gardener Bot added docs An issue or change related to documentation core Issues that should be addressed in Ray Core labels May 15, 2026
dstrodtman and others added 2 commits May 14, 2026 22:18
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Douglas Strodtman <[email protected]>
Follow-up on the MyST xref + deplock-regen additions. Every commit
on a `ray-project/ray` PR needs a `Signed-off-by:` trailer or the
DCO check fails the PR. Pass `--signoff` to `git commit`, or
`git commit --amend --signoff` to retro-fit. Surfaced when an early
version of the DOC-932 probes (ray-project#63343, ray-project#63344) had to be force-pushed
after the DCO check caught unsigned commits.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label May 15, 2026
Short rule capturing a gotcha surfaced reviewing the DOC-932 stack:
content diffs between an RtD PR preview and /en/latest mix stack
changes with all unreleased upstream churn since the last tagged
release. Comparing against /en/master isolates regressions
attributable to the PR. Routes future reviewers to the right baseline.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
dstrodtman added a commit to dstrodtman/ray that referenced this pull request May 18, 2026
Add four sections capturing authoring gotchas surfaced during the
DOC-932 dependency-upgrade probe work and during PR review of the
initial agent-context add (ray-project#63227):

- **DCO sign-off.** Every commit on a ray-project/ray PR needs a
  Signed-off-by trailer or the DCO check fails the PR.
- **Cross-references between .md and .rst sources.** Use the {doc}
  role, not bare [text](path.md), because MyST-Parser 2.0's
  cross-extension resolution emits myst.xref_missing on .rst targets,
  which fail_on_warning turns into a build failure.
- **Comparing PR previews against /en/master vs /en/latest.** Use
  /en/master to isolate regressions attributable to the PR. /en/latest
  mixes in unreleased upstream churn.
- **Editing the docs lockfile.** Hand-edit additive bumps; regenerate
  via raydepsets when a package's direct deps change. Precedent:
  ray-project#63344 caught stale via-comments after the pydata-sphinx-theme bump
  dropped packaging as a direct dep.

Folds the net-new content from ray-project#63354 (doc-943-claude-md-followups)
into this PR.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman

Copy link
Copy Markdown
Contributor Author

Folded into #63227 as commit bf94615. The doc-879 PR is no longer stacked, so all four follow-up sections (DCO sign-off, MyST {doc}-role xrefs, /en/master vs /en/latest preview comparison, and the docs lockfile regen rule) land in a single commit there. Closing this PR; the doc-943-claude-md-followups branch can be deleted after this lands.

@dstrodtman dstrodtman closed this May 18, 2026
elliot-barn pushed a commit that referenced this pull request May 18, 2026
## Why

`tf-keras==2.20.0` is pinned in `doc/requirements-doc.txt` and was
yanked from PyPI. The RtD build log on
[#63344](#63344) surfaced the
warning:

```
WARNING: The candidate selected for download or install is a yanked version: 'tf-keras' candidate (version 2.20.0 at https://files.pythonhosted.org/packages/50/9b/.../tf_keras-2.20.0-py3-none-any.whl)
Reason for being yanked: <none given>
```

The warning doesn't fail the build today (`fail_on_warning: true`
doesn't catch yank warnings), but a yanked version may be removed from
the index in the future and break the lock.

## What

Patch bump to the next non-yanked release:

- `doc/requirements-doc.txt`: `tf-keras==2.20.0` → `tf-keras==2.20.1`.
- `python/deplocks/docs/docbuild_depset_py3.10.lock`: update the
`tf-keras` entry with the 2.20.1 wheel and sdist hashes.

2.20.1 has identical `requires_dist` to 2.20.0
(`tensorflow<2.21,>=2.20`), so the existing `tensorflow==2.20.0` pin
still satisfies the constraint and no transitive deps churn. Manual lock
edit per the [#63130](#63130)
pattern is appropriate here.

The ML / `dl-cpu-requirements.txt` / `dl-gpu-requirements.txt` pins and
the `doctest_depset` lockfile also reference 2.20.0; those are out of
scope for this `doc`-tagged PR and can follow up separately.

## Verification

RtD PR preview build with `fail_on_warning: true`. Confirm the
yanked-version warning disappears and no new warnings appear.

## Context

Part of the [DOC-932](https://anyscale1.atlassian.net/browse/DOC-932)
campaign: Ray docs dependency upgrades. Independent of the other open
probes ([#63343](#63343),
[#63344](#63344),
[#63354](#63354)) — targets
`master` directly.

[DOC-941](https://anyscale1.atlassian.net/browse/DOC-941)

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
elliot-barn pushed a commit that referenced this pull request May 19, 2026
## Why

pydata-sphinx-theme is pinned at 0.14.1 (April 2023). Latest is 0.17.1
(March 2026). Two reasons to take this bump now:

1. The Anyscale docs team's legacy-versions assessment leans on the
theme's `show_version_warning_banner` option to add an EOS banner to
`releases-X.Y.Z/` builds. That option doesn't exist in 0.14.1 — see
pydata-sphinx-theme/pydata-sphinx-theme#759. Legacy-version banner work
blocks on this bump.
2. Theme integration is the highest-signal validation surface for a Ray
docs theme bump anyway: custom navbar, "Try Managed Ray" announcement
banner, version-switcher with `switcher.json_url` pointing at the
generated `versions.json`, and the template overrides under
`_templates/` (`csat.html`, `extrahead.html`, `layout.html`,
`navbar-anyscale.html`, and others).

Compatibility: 0.17.1 declares `sphinx<10,>=7.0`, which is compatible
with the current Sphinx 7.3.7 pin. Runtime deps are otherwise unchanged
(loses `packaging` as a direct dep, which Sphinx still pulls in
transitively).

## What

Four files changed:

- `doc/requirements-doc.txt`: `pydata-sphinx-theme==0.14.1` →
`pydata-sphinx-theme==0.17.1`.
- `python/deplocks/docs/docbuild_depset_py3.10.lock`: bump the
pydata-sphinx-theme version pin and hashes. No transitive-dep changes;
the runtime deps in 0.17.1 are a strict subset (lost `packaging` direct
pin, which Sphinx still pulls in).
- `doc/source/conf.py`: rename `pygment_light_style` and
`pygment_dark_style` to `pygments_light_style` and `pygments_dark_style`
(added `s`). The theme renamed these in 0.15.3 and the old names emit
deprecation warnings, which would fail the build under `fail_on_warning:
true`.
- `doc/source/_static/css/custom.css`: four follow-on CSS rules to
compensate for theme-CSS changes between 0.14 and 0.17 — see below.

## CSS fixups for theme rendering

PR preview review surfaced four visual regressions on 0.17 that weren't
present on 0.14 (production). All four are CSS-only — Ray's HTML and
custom template are unchanged; pydata 0.14 hid or styled certain
elements via theme CSS that 0.17 stopped applying or scoped differently:

1. **"Site Navigation" `<p>` visible in header.** Ray's
`_templates/navbar-links.html` emits `<p
class="sidebar-header-items__title">Site Navigation</p>` as a
screen-reader heading. 0.14 hid it in the header via theme CSS; 0.17
doesn't. Fix: scoped `display: none` in the navbar context, preserved in
the actual sidebar drawer where the heading is useful.
2. **Top-nav reference anchors underlined.** 0.14 had a broad rule
removing text-decoration on `<a class="reference internal">` in the
navbar; 0.17 scoped it tighter to `<a class="nav-link">`, which Ray's
anchors aren't. Fix: narrower re-add of `text-decoration: none`.
3. **Library / Resources dropdown chevrons render below the link text
instead of inline.** `.ref-container` is `display: flex; flex-direction:
row`, but pydata 0.17 layout interactions cause `<p>` and `<i>` to wrap.
Fix: `flex-wrap: nowrap` plus `flex: 0 0 auto` on the children.
4. **Top-nav items render top-aligned with the logo instead of
vertically centered.** pydata 0.17 set `flex-flow: wrap` on
`.navbar-header-items__center` without an explicit `align-items`, which
broke the existing `height: 100%` chain on `.navbar-toplevel`. Fix:
explicit `align-items: center` on `.navbar-header-items__center`.

## Validation surface

The RtD PR preview build is the primary validation surface. Two layers —
programmatic checks any reviewer can re-run, and manual visual checks
requiring a real browser.

### Programmatic checks (re-runnable from a shell)

These were run against the latest force-push and all passed:

- [x] Doubled-href regression gate (root cause for
[DOC-945](https://anyscale1.atlassian.net/browse/DOC-945)): `0/N` of `<a
class="reference internal">` sidebar hrefs have the `.//en/<ver>/...`
doubled prefix. Verified `0/755` on the latest PR preview.
- [x] OpenGraph meta tags present: `og:title`, `og:type`, `og:url`,
`og:description` on a sample of 5 pages.
- [x] Structural diff against `/en/master`: identical `<a
class="reference internal">` counts, code-block counts, cell-output
counts, heading counts on 8+ sampled pages. (Compare against
`/en/master`, not `/en/latest` — see DOC-943 PR #63354.)
- [x] Internal-link sampling: 40/40 sidebar hrefs return 200.
- [x] No `MissingIDFieldWarning`, `Notebook JSON is invalid`,
`myst.xref_missing`, or `Traceback` in rendered HTML on sampled pages.
- [x] Theme element presence on homepage: announcement banner, version
switcher, search box, sidebar nav, theme toggle, CSAT widget, RunLLM
widget, footer.

### Manual visual checks (require a real browser)

A reviewer should spot-check these on the PR preview (replace `<URL>`
with the RtD preview URL for this PR):

1. **Header — regression gate for the four CSS fixups.** Open
`<URL>/ray-core/walkthrough.html`. Confirm: no "Site Navigation" text in
the header; top-nav menu items not underlined; Library and Resources
dropdown chevrons sit to the right of the link text (not below); top-nav
items vertically centered with the Ray logo.
2. **Theme switcher.** Click the sun/moon/system icon top-right. Cycles
through three modes (light → dark → auto). The icon visibly lags one
click behind the active mode — this is the pydata 0.17 ternary-button UX
issue, tracked separately for the 0.18 dropdown fix in
[DOC-949](https://anyscale1.atlassian.net/browse/DOC-949). Not a blocker
for this PR.
3. **Version switcher dropdown.** Click the version dropdown (next to
the theme toggle). The list of versions should expand. Pick another
version, confirm navigation.
4. **Sidebar TOC.** Expand and collapse a sidebar section on any
narrative page. No layout shift, no broken nesting.
5. **Search.** Type `/` or `Ctrl-K`. Search input appears. Type
`ray.init`. Results dropdown lists matching API entries.
6. **Mobile responsive.** Narrow the browser window below ~768px.
Hamburger menu appears top-left; primary sidebar collapses into the
drawer; "Site Navigation" heading is allowed to appear inside the drawer
(the fix only hides it in the header).
7. **An autodoc-heavy API ref page.** Open
`<URL>/ray-core/api/doc/ray.init.html`. Signature box renders, parameter
table has correct columns, type cross-references are clickable.
8. **Announcement banner.** "Try Managed Ray" banner renders at top;
close button works; clicking the link navigates correctly.

### Known issues parked

- The pydata 0.17 theme switcher's ternary-button UX (icon visually lags
click) is a known upstream issue, fixed by the dropdown in pydata 0.18
(rc1 published 2026-05-12). The bump to 0.18 depends on Sphinx 8+
([DOC-938](https://anyscale1.atlassian.net/browse/DOC-938)). Tracked as
[DOC-949](https://anyscale1.atlassian.net/browse/DOC-949).
- The `preload_sidebar_nav` cache patch in `conf.py` reaches into
pydata-sphinx-theme internals. If internals moved between 0.14 and 0.17,
that patch will need a small follow-up. Tracked separately as
[DOC-937](https://anyscale1.atlassian.net/browse/DOC-937).
- `show_version_warning_banner` is a recognized config option in 0.17
but not yet enabled here. Enable is a follow-up tracked under
[DOC-940](https://anyscale1.atlassian.net/browse/DOC-940).

## Stacked on #63343

This PR is stacked on top of #63343 (the additive-extensions probe).
While #63343 is open, the diff in this PR shows both commits. When
#63343 merges, this PR will narrow to just the pydata-sphinx-theme
change.

## Context

Part of the [DOC-932](https://anyscale1.atlassian.net/browse/DOC-932)
campaign: Ray docs dependency upgrades. Strategy context in
`anyscale/docs:strategy/ray-docs/config-deep-dive.md` section 1.2 and
`sphinx-rtd-viability.md`. Unblocks
[DOC-940](https://anyscale1.atlassian.net/browse/DOC-940)
(`show_version_warning_banner` enable on legacy version archives).

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
TruongQuangPhat pushed a commit to cyhapun/ray-fix-issue that referenced this pull request May 27, 2026
## Why

`tf-keras==2.20.0` is pinned in `doc/requirements-doc.txt` and was
yanked from PyPI. The RtD build log on
[ray-project#63344](ray-project#63344) surfaced the
warning:

```
WARNING: The candidate selected for download or install is a yanked version: 'tf-keras' candidate (version 2.20.0 at https://files.pythonhosted.org/packages/50/9b/.../tf_keras-2.20.0-py3-none-any.whl)
Reason for being yanked: <none given>
```

The warning doesn't fail the build today (`fail_on_warning: true`
doesn't catch yank warnings), but a yanked version may be removed from
the index in the future and break the lock.

## What

Patch bump to the next non-yanked release:

- `doc/requirements-doc.txt`: `tf-keras==2.20.0` → `tf-keras==2.20.1`.
- `python/deplocks/docs/docbuild_depset_py3.10.lock`: update the
`tf-keras` entry with the 2.20.1 wheel and sdist hashes.

2.20.1 has identical `requires_dist` to 2.20.0
(`tensorflow<2.21,>=2.20`), so the existing `tensorflow==2.20.0` pin
still satisfies the constraint and no transitive deps churn. Manual lock
edit per the [ray-project#63130](ray-project#63130)
pattern is appropriate here.

The ML / `dl-cpu-requirements.txt` / `dl-gpu-requirements.txt` pins and
the `doctest_depset` lockfile also reference 2.20.0; those are out of
scope for this `doc`-tagged PR and can follow up separately.

## Verification

RtD PR preview build with `fail_on_warning: true`. Confirm the
yanked-version warning disappears and no new warnings appear.

## Context

Part of the [DOC-932](https://anyscale1.atlassian.net/browse/DOC-932)
campaign: Ray docs dependency upgrades. Independent of the other open
probes ([ray-project#63343](ray-project#63343),
[ray-project#63344](ray-project#63344),
[ray-project#63354](ray-project#63354)) — targets
`master` directly.

[DOC-941](https://anyscale1.atlassian.net/browse/DOC-941)

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Signed-off-by: phattruong <[email protected]>
TruongQuangPhat pushed a commit to cyhapun/ray-fix-issue that referenced this pull request May 27, 2026
…#63344)

## Why

pydata-sphinx-theme is pinned at 0.14.1 (April 2023). Latest is 0.17.1
(March 2026). Two reasons to take this bump now:

1. The Anyscale docs team's legacy-versions assessment leans on the
theme's `show_version_warning_banner` option to add an EOS banner to
`releases-X.Y.Z/` builds. That option doesn't exist in 0.14.1 — see
pydata-sphinx-theme/pydata-sphinx-theme#759. Legacy-version banner work
blocks on this bump.
2. Theme integration is the highest-signal validation surface for a Ray
docs theme bump anyway: custom navbar, "Try Managed Ray" announcement
banner, version-switcher with `switcher.json_url` pointing at the
generated `versions.json`, and the template overrides under
`_templates/` (`csat.html`, `extrahead.html`, `layout.html`,
`navbar-anyscale.html`, and others).

Compatibility: 0.17.1 declares `sphinx<10,>=7.0`, which is compatible
with the current Sphinx 7.3.7 pin. Runtime deps are otherwise unchanged
(loses `packaging` as a direct dep, which Sphinx still pulls in
transitively).

## What

Four files changed:

- `doc/requirements-doc.txt`: `pydata-sphinx-theme==0.14.1` →
`pydata-sphinx-theme==0.17.1`.
- `python/deplocks/docs/docbuild_depset_py3.10.lock`: bump the
pydata-sphinx-theme version pin and hashes. No transitive-dep changes;
the runtime deps in 0.17.1 are a strict subset (lost `packaging` direct
pin, which Sphinx still pulls in).
- `doc/source/conf.py`: rename `pygment_light_style` and
`pygment_dark_style` to `pygments_light_style` and `pygments_dark_style`
(added `s`). The theme renamed these in 0.15.3 and the old names emit
deprecation warnings, which would fail the build under `fail_on_warning:
true`.
- `doc/source/_static/css/custom.css`: four follow-on CSS rules to
compensate for theme-CSS changes between 0.14 and 0.17 — see below.

## CSS fixups for theme rendering

PR preview review surfaced four visual regressions on 0.17 that weren't
present on 0.14 (production). All four are CSS-only — Ray's HTML and
custom template are unchanged; pydata 0.14 hid or styled certain
elements via theme CSS that 0.17 stopped applying or scoped differently:

1. **"Site Navigation" `<p>` visible in header.** Ray's
`_templates/navbar-links.html` emits `<p
class="sidebar-header-items__title">Site Navigation</p>` as a
screen-reader heading. 0.14 hid it in the header via theme CSS; 0.17
doesn't. Fix: scoped `display: none` in the navbar context, preserved in
the actual sidebar drawer where the heading is useful.
2. **Top-nav reference anchors underlined.** 0.14 had a broad rule
removing text-decoration on `<a class="reference internal">` in the
navbar; 0.17 scoped it tighter to `<a class="nav-link">`, which Ray's
anchors aren't. Fix: narrower re-add of `text-decoration: none`.
3. **Library / Resources dropdown chevrons render below the link text
instead of inline.** `.ref-container` is `display: flex; flex-direction:
row`, but pydata 0.17 layout interactions cause `<p>` and `<i>` to wrap.
Fix: `flex-wrap: nowrap` plus `flex: 0 0 auto` on the children.
4. **Top-nav items render top-aligned with the logo instead of
vertically centered.** pydata 0.17 set `flex-flow: wrap` on
`.navbar-header-items__center` without an explicit `align-items`, which
broke the existing `height: 100%` chain on `.navbar-toplevel`. Fix:
explicit `align-items: center` on `.navbar-header-items__center`.

## Validation surface

The RtD PR preview build is the primary validation surface. Two layers —
programmatic checks any reviewer can re-run, and manual visual checks
requiring a real browser.

### Programmatic checks (re-runnable from a shell)

These were run against the latest force-push and all passed:

- [x] Doubled-href regression gate (root cause for
[DOC-945](https://anyscale1.atlassian.net/browse/DOC-945)): `0/N` of `<a
class="reference internal">` sidebar hrefs have the `.//en/<ver>/...`
doubled prefix. Verified `0/755` on the latest PR preview.
- [x] OpenGraph meta tags present: `og:title`, `og:type`, `og:url`,
`og:description` on a sample of 5 pages.
- [x] Structural diff against `/en/master`: identical `<a
class="reference internal">` counts, code-block counts, cell-output
counts, heading counts on 8+ sampled pages. (Compare against
`/en/master`, not `/en/latest` — see DOC-943 PR ray-project#63354.)
- [x] Internal-link sampling: 40/40 sidebar hrefs return 200.
- [x] No `MissingIDFieldWarning`, `Notebook JSON is invalid`,
`myst.xref_missing`, or `Traceback` in rendered HTML on sampled pages.
- [x] Theme element presence on homepage: announcement banner, version
switcher, search box, sidebar nav, theme toggle, CSAT widget, RunLLM
widget, footer.

### Manual visual checks (require a real browser)

A reviewer should spot-check these on the PR preview (replace `<URL>`
with the RtD preview URL for this PR):

1. **Header — regression gate for the four CSS fixups.** Open
`<URL>/ray-core/walkthrough.html`. Confirm: no "Site Navigation" text in
the header; top-nav menu items not underlined; Library and Resources
dropdown chevrons sit to the right of the link text (not below); top-nav
items vertically centered with the Ray logo.
2. **Theme switcher.** Click the sun/moon/system icon top-right. Cycles
through three modes (light → dark → auto). The icon visibly lags one
click behind the active mode — this is the pydata 0.17 ternary-button UX
issue, tracked separately for the 0.18 dropdown fix in
[DOC-949](https://anyscale1.atlassian.net/browse/DOC-949). Not a blocker
for this PR.
3. **Version switcher dropdown.** Click the version dropdown (next to
the theme toggle). The list of versions should expand. Pick another
version, confirm navigation.
4. **Sidebar TOC.** Expand and collapse a sidebar section on any
narrative page. No layout shift, no broken nesting.
5. **Search.** Type `/` or `Ctrl-K`. Search input appears. Type
`ray.init`. Results dropdown lists matching API entries.
6. **Mobile responsive.** Narrow the browser window below ~768px.
Hamburger menu appears top-left; primary sidebar collapses into the
drawer; "Site Navigation" heading is allowed to appear inside the drawer
(the fix only hides it in the header).
7. **An autodoc-heavy API ref page.** Open
`<URL>/ray-core/api/doc/ray.init.html`. Signature box renders, parameter
table has correct columns, type cross-references are clickable.
8. **Announcement banner.** "Try Managed Ray" banner renders at top;
close button works; clicking the link navigates correctly.

### Known issues parked

- The pydata 0.17 theme switcher's ternary-button UX (icon visually lags
click) is a known upstream issue, fixed by the dropdown in pydata 0.18
(rc1 published 2026-05-12). The bump to 0.18 depends on Sphinx 8+
([DOC-938](https://anyscale1.atlassian.net/browse/DOC-938)). Tracked as
[DOC-949](https://anyscale1.atlassian.net/browse/DOC-949).
- The `preload_sidebar_nav` cache patch in `conf.py` reaches into
pydata-sphinx-theme internals. If internals moved between 0.14 and 0.17,
that patch will need a small follow-up. Tracked separately as
[DOC-937](https://anyscale1.atlassian.net/browse/DOC-937).
- `show_version_warning_banner` is a recognized config option in 0.17
but not yet enabled here. Enable is a follow-up tracked under
[DOC-940](https://anyscale1.atlassian.net/browse/DOC-940).

## Stacked on ray-project#63343

This PR is stacked on top of ray-project#63343 (the additive-extensions probe).
While ray-project#63343 is open, the diff in this PR shows both commits. When
ray-project#63343 merges, this PR will narrow to just the pydata-sphinx-theme
change.

## Context

Part of the [DOC-932](https://anyscale1.atlassian.net/browse/DOC-932)
campaign: Ray docs dependency upgrades. Strategy context in
`anyscale/docs:strategy/ray-docs/config-deep-dive.md` section 1.2 and
`sphinx-rtd-viability.md`. Unblocks
[DOC-940](https://anyscale1.atlassian.net/browse/DOC-940)
(`show_version_warning_banner` enable on legacy version archives).

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Signed-off-by: phattruong <[email protected]>
alexandrplashchinsky pushed a commit to alexandrplashchinsky/ray-alex that referenced this pull request May 29, 2026
## Why

`tf-keras==2.20.0` is pinned in `doc/requirements-doc.txt` and was
yanked from PyPI. The RtD build log on
[ray-project#63344](ray-project#63344) surfaced the
warning:

```
WARNING: The candidate selected for download or install is a yanked version: 'tf-keras' candidate (version 2.20.0 at https://files.pythonhosted.org/packages/50/9b/.../tf_keras-2.20.0-py3-none-any.whl)
Reason for being yanked: <none given>
```

The warning doesn't fail the build today (`fail_on_warning: true`
doesn't catch yank warnings), but a yanked version may be removed from
the index in the future and break the lock.

## What

Patch bump to the next non-yanked release:

- `doc/requirements-doc.txt`: `tf-keras==2.20.0` → `tf-keras==2.20.1`.
- `python/deplocks/docs/docbuild_depset_py3.10.lock`: update the
`tf-keras` entry with the 2.20.1 wheel and sdist hashes.

2.20.1 has identical `requires_dist` to 2.20.0
(`tensorflow<2.21,>=2.20`), so the existing `tensorflow==2.20.0` pin
still satisfies the constraint and no transitive deps churn. Manual lock
edit per the [ray-project#63130](ray-project#63130)
pattern is appropriate here.

The ML / `dl-cpu-requirements.txt` / `dl-gpu-requirements.txt` pins and
the `doctest_depset` lockfile also reference 2.20.0; those are out of
scope for this `doc`-tagged PR and can follow up separately.

## Verification

RtD PR preview build with `fail_on_warning: true`. Confirm the
yanked-version warning disappears and no new warnings appear.

## Context

Part of the [DOC-932](https://anyscale1.atlassian.net/browse/DOC-932)
campaign: Ray docs dependency upgrades. Independent of the other open
probes ([ray-project#63343](ray-project#63343),
[ray-project#63344](ray-project#63344),
[ray-project#63354](ray-project#63354)) — targets
`master` directly.

[DOC-941](https://anyscale1.atlassian.net/browse/DOC-941)

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Signed-off-by: Alexandr Plashchinsky <[email protected]>
alexandrplashchinsky pushed a commit to alexandrplashchinsky/ray-alex that referenced this pull request May 29, 2026
…#63344)

## Why

pydata-sphinx-theme is pinned at 0.14.1 (April 2023). Latest is 0.17.1
(March 2026). Two reasons to take this bump now:

1. The Anyscale docs team's legacy-versions assessment leans on the
theme's `show_version_warning_banner` option to add an EOS banner to
`releases-X.Y.Z/` builds. That option doesn't exist in 0.14.1 — see
pydata-sphinx-theme/pydata-sphinx-theme#759. Legacy-version banner work
blocks on this bump.
2. Theme integration is the highest-signal validation surface for a Ray
docs theme bump anyway: custom navbar, "Try Managed Ray" announcement
banner, version-switcher with `switcher.json_url` pointing at the
generated `versions.json`, and the template overrides under
`_templates/` (`csat.html`, `extrahead.html`, `layout.html`,
`navbar-anyscale.html`, and others).

Compatibility: 0.17.1 declares `sphinx<10,>=7.0`, which is compatible
with the current Sphinx 7.3.7 pin. Runtime deps are otherwise unchanged
(loses `packaging` as a direct dep, which Sphinx still pulls in
transitively).

## What

Four files changed:

- `doc/requirements-doc.txt`: `pydata-sphinx-theme==0.14.1` →
`pydata-sphinx-theme==0.17.1`.
- `python/deplocks/docs/docbuild_depset_py3.10.lock`: bump the
pydata-sphinx-theme version pin and hashes. No transitive-dep changes;
the runtime deps in 0.17.1 are a strict subset (lost `packaging` direct
pin, which Sphinx still pulls in).
- `doc/source/conf.py`: rename `pygment_light_style` and
`pygment_dark_style` to `pygments_light_style` and `pygments_dark_style`
(added `s`). The theme renamed these in 0.15.3 and the old names emit
deprecation warnings, which would fail the build under `fail_on_warning:
true`.
- `doc/source/_static/css/custom.css`: four follow-on CSS rules to
compensate for theme-CSS changes between 0.14 and 0.17 — see below.

## CSS fixups for theme rendering

PR preview review surfaced four visual regressions on 0.17 that weren't
present on 0.14 (production). All four are CSS-only — Ray's HTML and
custom template are unchanged; pydata 0.14 hid or styled certain
elements via theme CSS that 0.17 stopped applying or scoped differently:

1. **"Site Navigation" `<p>` visible in header.** Ray's
`_templates/navbar-links.html` emits `<p
class="sidebar-header-items__title">Site Navigation</p>` as a
screen-reader heading. 0.14 hid it in the header via theme CSS; 0.17
doesn't. Fix: scoped `display: none` in the navbar context, preserved in
the actual sidebar drawer where the heading is useful.
2. **Top-nav reference anchors underlined.** 0.14 had a broad rule
removing text-decoration on `<a class="reference internal">` in the
navbar; 0.17 scoped it tighter to `<a class="nav-link">`, which Ray's
anchors aren't. Fix: narrower re-add of `text-decoration: none`.
3. **Library / Resources dropdown chevrons render below the link text
instead of inline.** `.ref-container` is `display: flex; flex-direction:
row`, but pydata 0.17 layout interactions cause `<p>` and `<i>` to wrap.
Fix: `flex-wrap: nowrap` plus `flex: 0 0 auto` on the children.
4. **Top-nav items render top-aligned with the logo instead of
vertically centered.** pydata 0.17 set `flex-flow: wrap` on
`.navbar-header-items__center` without an explicit `align-items`, which
broke the existing `height: 100%` chain on `.navbar-toplevel`. Fix:
explicit `align-items: center` on `.navbar-header-items__center`.

## Validation surface

The RtD PR preview build is the primary validation surface. Two layers —
programmatic checks any reviewer can re-run, and manual visual checks
requiring a real browser.

### Programmatic checks (re-runnable from a shell)

These were run against the latest force-push and all passed:

- [x] Doubled-href regression gate (root cause for
[DOC-945](https://anyscale1.atlassian.net/browse/DOC-945)): `0/N` of `<a
class="reference internal">` sidebar hrefs have the `.//en/<ver>/...`
doubled prefix. Verified `0/755` on the latest PR preview.
- [x] OpenGraph meta tags present: `og:title`, `og:type`, `og:url`,
`og:description` on a sample of 5 pages.
- [x] Structural diff against `/en/master`: identical `<a
class="reference internal">` counts, code-block counts, cell-output
counts, heading counts on 8+ sampled pages. (Compare against
`/en/master`, not `/en/latest` — see DOC-943 PR ray-project#63354.)
- [x] Internal-link sampling: 40/40 sidebar hrefs return 200.
- [x] No `MissingIDFieldWarning`, `Notebook JSON is invalid`,
`myst.xref_missing`, or `Traceback` in rendered HTML on sampled pages.
- [x] Theme element presence on homepage: announcement banner, version
switcher, search box, sidebar nav, theme toggle, CSAT widget, RunLLM
widget, footer.

### Manual visual checks (require a real browser)

A reviewer should spot-check these on the PR preview (replace `<URL>`
with the RtD preview URL for this PR):

1. **Header — regression gate for the four CSS fixups.** Open
`<URL>/ray-core/walkthrough.html`. Confirm: no "Site Navigation" text in
the header; top-nav menu items not underlined; Library and Resources
dropdown chevrons sit to the right of the link text (not below); top-nav
items vertically centered with the Ray logo.
2. **Theme switcher.** Click the sun/moon/system icon top-right. Cycles
through three modes (light → dark → auto). The icon visibly lags one
click behind the active mode — this is the pydata 0.17 ternary-button UX
issue, tracked separately for the 0.18 dropdown fix in
[DOC-949](https://anyscale1.atlassian.net/browse/DOC-949). Not a blocker
for this PR.
3. **Version switcher dropdown.** Click the version dropdown (next to
the theme toggle). The list of versions should expand. Pick another
version, confirm navigation.
4. **Sidebar TOC.** Expand and collapse a sidebar section on any
narrative page. No layout shift, no broken nesting.
5. **Search.** Type `/` or `Ctrl-K`. Search input appears. Type
`ray.init`. Results dropdown lists matching API entries.
6. **Mobile responsive.** Narrow the browser window below ~768px.
Hamburger menu appears top-left; primary sidebar collapses into the
drawer; "Site Navigation" heading is allowed to appear inside the drawer
(the fix only hides it in the header).
7. **An autodoc-heavy API ref page.** Open
`<URL>/ray-core/api/doc/ray.init.html`. Signature box renders, parameter
table has correct columns, type cross-references are clickable.
8. **Announcement banner.** "Try Managed Ray" banner renders at top;
close button works; clicking the link navigates correctly.

### Known issues parked

- The pydata 0.17 theme switcher's ternary-button UX (icon visually lags
click) is a known upstream issue, fixed by the dropdown in pydata 0.18
(rc1 published 2026-05-12). The bump to 0.18 depends on Sphinx 8+
([DOC-938](https://anyscale1.atlassian.net/browse/DOC-938)). Tracked as
[DOC-949](https://anyscale1.atlassian.net/browse/DOC-949).
- The `preload_sidebar_nav` cache patch in `conf.py` reaches into
pydata-sphinx-theme internals. If internals moved between 0.14 and 0.17,
that patch will need a small follow-up. Tracked separately as
[DOC-937](https://anyscale1.atlassian.net/browse/DOC-937).
- `show_version_warning_banner` is a recognized config option in 0.17
but not yet enabled here. Enable is a follow-up tracked under
[DOC-940](https://anyscale1.atlassian.net/browse/DOC-940).

## Stacked on ray-project#63343

This PR is stacked on top of ray-project#63343 (the additive-extensions probe).
While ray-project#63343 is open, the diff in this PR shows both commits. When
ray-project#63343 merges, this PR will narrow to just the pydata-sphinx-theme
change.

## Context

Part of the [DOC-932](https://anyscale1.atlassian.net/browse/DOC-932)
campaign: Ray docs dependency upgrades. Strategy context in
`anyscale/docs:strategy/ray-docs/config-deep-dive.md` section 1.2 and
`sphinx-rtd-viability.md`. Unblocks
[DOC-940](https://anyscale1.atlassian.net/browse/DOC-940)
(`show_version_warning_banner` enable on legacy version archives).

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Signed-off-by: Alexandr Plashchinsky <[email protected]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
## Why

`tf-keras==2.20.0` is pinned in `doc/requirements-doc.txt` and was
yanked from PyPI. The RtD build log on
[ray-project#63344](ray-project#63344) surfaced the
warning:

```
WARNING: The candidate selected for download or install is a yanked version: 'tf-keras' candidate (version 2.20.0 at https://files.pythonhosted.org/packages/50/9b/.../tf_keras-2.20.0-py3-none-any.whl)
Reason for being yanked: <none given>
```

The warning doesn't fail the build today (`fail_on_warning: true`
doesn't catch yank warnings), but a yanked version may be removed from
the index in the future and break the lock.

## What

Patch bump to the next non-yanked release:

- `doc/requirements-doc.txt`: `tf-keras==2.20.0` → `tf-keras==2.20.1`.
- `python/deplocks/docs/docbuild_depset_py3.10.lock`: update the
`tf-keras` entry with the 2.20.1 wheel and sdist hashes.

2.20.1 has identical `requires_dist` to 2.20.0
(`tensorflow<2.21,>=2.20`), so the existing `tensorflow==2.20.0` pin
still satisfies the constraint and no transitive deps churn. Manual lock
edit per the [ray-project#63130](ray-project#63130)
pattern is appropriate here.

The ML / `dl-cpu-requirements.txt` / `dl-gpu-requirements.txt` pins and
the `doctest_depset` lockfile also reference 2.20.0; those are out of
scope for this `doc`-tagged PR and can follow up separately.

## Verification

RtD PR preview build with `fail_on_warning: true`. Confirm the
yanked-version warning disappears and no new warnings appear.

## Context

Part of the [DOC-932](https://anyscale1.atlassian.net/browse/DOC-932)
campaign: Ray docs dependency upgrades. Independent of the other open
probes ([ray-project#63343](ray-project#63343),
[ray-project#63344](ray-project#63344),
[ray-project#63354](ray-project#63354)) — targets
`master` directly.

[DOC-941](https://anyscale1.atlassian.net/browse/DOC-941)

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Signed-off-by: 400Ping <[email protected]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
…#63344)

## Why

pydata-sphinx-theme is pinned at 0.14.1 (April 2023). Latest is 0.17.1
(March 2026). Two reasons to take this bump now:

1. The Anyscale docs team's legacy-versions assessment leans on the
theme's `show_version_warning_banner` option to add an EOS banner to
`releases-X.Y.Z/` builds. That option doesn't exist in 0.14.1 — see
pydata-sphinx-theme/pydata-sphinx-theme#759. Legacy-version banner work
blocks on this bump.
2. Theme integration is the highest-signal validation surface for a Ray
docs theme bump anyway: custom navbar, "Try Managed Ray" announcement
banner, version-switcher with `switcher.json_url` pointing at the
generated `versions.json`, and the template overrides under
`_templates/` (`csat.html`, `extrahead.html`, `layout.html`,
`navbar-anyscale.html`, and others).

Compatibility: 0.17.1 declares `sphinx<10,>=7.0`, which is compatible
with the current Sphinx 7.3.7 pin. Runtime deps are otherwise unchanged
(loses `packaging` as a direct dep, which Sphinx still pulls in
transitively).

## What

Four files changed:

- `doc/requirements-doc.txt`: `pydata-sphinx-theme==0.14.1` →
`pydata-sphinx-theme==0.17.1`.
- `python/deplocks/docs/docbuild_depset_py3.10.lock`: bump the
pydata-sphinx-theme version pin and hashes. No transitive-dep changes;
the runtime deps in 0.17.1 are a strict subset (lost `packaging` direct
pin, which Sphinx still pulls in).
- `doc/source/conf.py`: rename `pygment_light_style` and
`pygment_dark_style` to `pygments_light_style` and `pygments_dark_style`
(added `s`). The theme renamed these in 0.15.3 and the old names emit
deprecation warnings, which would fail the build under `fail_on_warning:
true`.
- `doc/source/_static/css/custom.css`: four follow-on CSS rules to
compensate for theme-CSS changes between 0.14 and 0.17 — see below.

## CSS fixups for theme rendering

PR preview review surfaced four visual regressions on 0.17 that weren't
present on 0.14 (production). All four are CSS-only — Ray's HTML and
custom template are unchanged; pydata 0.14 hid or styled certain
elements via theme CSS that 0.17 stopped applying or scoped differently:

1. **"Site Navigation" `<p>` visible in header.** Ray's
`_templates/navbar-links.html` emits `<p
class="sidebar-header-items__title">Site Navigation</p>` as a
screen-reader heading. 0.14 hid it in the header via theme CSS; 0.17
doesn't. Fix: scoped `display: none` in the navbar context, preserved in
the actual sidebar drawer where the heading is useful.
2. **Top-nav reference anchors underlined.** 0.14 had a broad rule
removing text-decoration on `<a class="reference internal">` in the
navbar; 0.17 scoped it tighter to `<a class="nav-link">`, which Ray's
anchors aren't. Fix: narrower re-add of `text-decoration: none`.
3. **Library / Resources dropdown chevrons render below the link text
instead of inline.** `.ref-container` is `display: flex; flex-direction:
row`, but pydata 0.17 layout interactions cause `<p>` and `<i>` to wrap.
Fix: `flex-wrap: nowrap` plus `flex: 0 0 auto` on the children.
4. **Top-nav items render top-aligned with the logo instead of
vertically centered.** pydata 0.17 set `flex-flow: wrap` on
`.navbar-header-items__center` without an explicit `align-items`, which
broke the existing `height: 100%` chain on `.navbar-toplevel`. Fix:
explicit `align-items: center` on `.navbar-header-items__center`.

## Validation surface

The RtD PR preview build is the primary validation surface. Two layers —
programmatic checks any reviewer can re-run, and manual visual checks
requiring a real browser.

### Programmatic checks (re-runnable from a shell)

These were run against the latest force-push and all passed:

- [x] Doubled-href regression gate (root cause for
[DOC-945](https://anyscale1.atlassian.net/browse/DOC-945)): `0/N` of `<a
class="reference internal">` sidebar hrefs have the `.//en/<ver>/...`
doubled prefix. Verified `0/755` on the latest PR preview.
- [x] OpenGraph meta tags present: `og:title`, `og:type`, `og:url`,
`og:description` on a sample of 5 pages.
- [x] Structural diff against `/en/master`: identical `<a
class="reference internal">` counts, code-block counts, cell-output
counts, heading counts on 8+ sampled pages. (Compare against
`/en/master`, not `/en/latest` — see DOC-943 PR ray-project#63354.)
- [x] Internal-link sampling: 40/40 sidebar hrefs return 200.
- [x] No `MissingIDFieldWarning`, `Notebook JSON is invalid`,
`myst.xref_missing`, or `Traceback` in rendered HTML on sampled pages.
- [x] Theme element presence on homepage: announcement banner, version
switcher, search box, sidebar nav, theme toggle, CSAT widget, RunLLM
widget, footer.

### Manual visual checks (require a real browser)

A reviewer should spot-check these on the PR preview (replace `<URL>`
with the RtD preview URL for this PR):

1. **Header — regression gate for the four CSS fixups.** Open
`<URL>/ray-core/walkthrough.html`. Confirm: no "Site Navigation" text in
the header; top-nav menu items not underlined; Library and Resources
dropdown chevrons sit to the right of the link text (not below); top-nav
items vertically centered with the Ray logo.
2. **Theme switcher.** Click the sun/moon/system icon top-right. Cycles
through three modes (light → dark → auto). The icon visibly lags one
click behind the active mode — this is the pydata 0.17 ternary-button UX
issue, tracked separately for the 0.18 dropdown fix in
[DOC-949](https://anyscale1.atlassian.net/browse/DOC-949). Not a blocker
for this PR.
3. **Version switcher dropdown.** Click the version dropdown (next to
the theme toggle). The list of versions should expand. Pick another
version, confirm navigation.
4. **Sidebar TOC.** Expand and collapse a sidebar section on any
narrative page. No layout shift, no broken nesting.
5. **Search.** Type `/` or `Ctrl-K`. Search input appears. Type
`ray.init`. Results dropdown lists matching API entries.
6. **Mobile responsive.** Narrow the browser window below ~768px.
Hamburger menu appears top-left; primary sidebar collapses into the
drawer; "Site Navigation" heading is allowed to appear inside the drawer
(the fix only hides it in the header).
7. **An autodoc-heavy API ref page.** Open
`<URL>/ray-core/api/doc/ray.init.html`. Signature box renders, parameter
table has correct columns, type cross-references are clickable.
8. **Announcement banner.** "Try Managed Ray" banner renders at top;
close button works; clicking the link navigates correctly.

### Known issues parked

- The pydata 0.17 theme switcher's ternary-button UX (icon visually lags
click) is a known upstream issue, fixed by the dropdown in pydata 0.18
(rc1 published 2026-05-12). The bump to 0.18 depends on Sphinx 8+
([DOC-938](https://anyscale1.atlassian.net/browse/DOC-938)). Tracked as
[DOC-949](https://anyscale1.atlassian.net/browse/DOC-949).
- The `preload_sidebar_nav` cache patch in `conf.py` reaches into
pydata-sphinx-theme internals. If internals moved between 0.14 and 0.17,
that patch will need a small follow-up. Tracked separately as
[DOC-937](https://anyscale1.atlassian.net/browse/DOC-937).
- `show_version_warning_banner` is a recognized config option in 0.17
but not yet enabled here. Enable is a follow-up tracked under
[DOC-940](https://anyscale1.atlassian.net/browse/DOC-940).

## Stacked on ray-project#63343

This PR is stacked on top of ray-project#63343 (the additive-extensions probe).
While ray-project#63343 is open, the diff in this PR shows both commits. When
ray-project#63343 merges, this PR will narrow to just the pydata-sphinx-theme
change.

## Context

Part of the [DOC-932](https://anyscale1.atlassian.net/browse/DOC-932)
campaign: Ray docs dependency upgrades. Strategy context in
`anyscale/docs:strategy/ray-docs/config-deep-dive.md` section 1.2 and
`sphinx-rtd-viability.md`. Unblocks
[DOC-940](https://anyscale1.atlassian.net/browse/DOC-940)
(`show_version_warning_banner` enable on legacy version archives).

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Signed-off-by: 400Ping <[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 go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant