Skip to content

[doc] Drop the unused nevergrad intersphinx target and fix the annotation-resolution note - #66211

Merged
dstrodtman merged 2 commits into
masterfrom
doc-1581-nevergrad-drop-contract
Sep 28, 2026
Merged

dstrodtman merged 2 commits into
masterfrom
doc-1581-nevergrad-drop-contract

Conversation

@dstrodtman

Copy link
Copy Markdown
Contributor

What

Two intersphinx-hygiene changes, backed by a fresh usage measurement of the rendered docs corpus:

  1. Drop the nevergrad intersphinx target and its committed inventory snapshot. A per-target census of the rendered master corpus (4,432 pages) shows nevergrad resolves zero cross-references. Its only mentions in the built site are internal links to Ray's own NevergradSearch API and prose, not generated cross-references. It was carrying a committed .inv snapshot and a standing refresh obligation for no reader-facing links, which is the same criterion the eight targets dropped in [doc] Drop the eight intersphinx targets that resolve nothing #65644 met. refresh.py reads the target list from _intersphinx_targets in conf.py, so removing the entry also drops it from the refresh cycle with no further change.
  2. Correct an over-general sentence in the contributor docs. ray-contribute/docs.md stated that annotations which don't resolve "render as plain text; they don't fail the build." That is true for third-party types, which resolve as py:class and are covered by a blanket nitpick_ignore_regex entry, but false for None and typing.* annotations, which Sphinx emits as py:obj. Nothing ignores py:obj generically, so those build cleanly only because the python intersphinx target resolves them. The added clause prevents the sentence being generalized into "intersphinx is safe to strip," which would fail the -W build on thousands of None/typing.* references.

Why this isn't a duplicate

No open PR drops nevergrad or edits this sentence (checked gh pr list --search for intersphinx, nevergrad, and the ray-contribute annotations text). #65644 dropped eight other zero-resolution targets; this continues that hygiene on a target that has since regressed to zero. #65604 (dropping pytorch_lightning) is closed.

Why this isn't trivial busywork

It removes a committed binary snapshot plus a monthly refresh obligation on measured evidence, and it corrects a documented claim that could lead a contributor into a build-breaking change. The two edits share the intersphinx-resolution surface and land together rather than as separate one-line PRs.

Tests

Faithful local RtD build of this branch, mirroring the Read the Docs -W config:

python -m sphinx --keep-going -b html -d _build/doctrees -a -E -W -j auto -T -D language=en source _build/html

Result: build succeeded., exit 0 (zero Sphinx warnings under -W). Post-build grep confirms nevergrad now resolves no markers and no -W failure was introduced by its removal (it resolved nothing before the drop, so nothing regressed). The Read the Docs PR-preview build is the authoritative gate and runs on this PR.

AI assistance

This change was prepared with AI assistance (Claude Code). The measurement, edits, and local build were reviewed by the submitter.

…tion-resolution note

Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman
dstrodtman requested review from a team as code owners September 16, 2026 18:16

@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 removes the nevergrad entry from the Sphinx intersphinx_mapping configuration and updates the documentation guidelines to clarify how None and typing.* annotations are handled during the build process. A review comment suggests a minor rephrasing of the added documentation text to improve readability and technical precision regarding py:obj annotations.

Comment thread doc/source/ray-contribute/docs.md Resolved
@ray-gardener ray-gardener Bot added the core Issues that should be addressed in Ray Core label Sep 16, 2026
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Sep 16, 2026
@dstrodtman
dstrodtman merged commit 37f1dd8 into master Sep 28, 2026
7 checks passed
@dstrodtman
dstrodtman deleted the doc-1581-nevergrad-drop-contract branch September 28, 2026 17:22
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…tion-resolution note (ray-project#66211)

## What

Two intersphinx-hygiene changes, backed by a fresh usage measurement of
the rendered docs corpus:

1. **Drop the `nevergrad` intersphinx target** and its committed
inventory snapshot. A per-target census of the rendered master corpus
(4,432 pages) shows `nevergrad` resolves **zero** cross-references. Its
only mentions in the built site are internal links to Ray's own
`NevergradSearch` API and prose, not generated cross-references. It was
carrying a committed `.inv` snapshot and a standing refresh obligation
for no reader-facing links, which is the same criterion the eight
targets dropped in ray-project#65644 met. `refresh.py` reads the target list from
`_intersphinx_targets` in `conf.py`, so removing the entry also drops it
from the refresh cycle with no further change.
2. **Correct an over-general sentence in the contributor docs.**
`ray-contribute/docs.md` stated that annotations which don't resolve
"render as plain text; they don't fail the build." That is true for
third-party types, which resolve as `py:class` and are covered by a
blanket `nitpick_ignore_regex` entry, but false for `None` and
`typing.*` annotations, which Sphinx emits as `py:obj`. Nothing ignores
`py:obj` generically, so those build cleanly only because the `python`
intersphinx target resolves them. The added clause prevents the sentence
being generalized into "intersphinx is safe to strip," which would fail
the `-W` build on thousands of `None`/`typing.*` references.

## Why this isn't a duplicate

No open PR drops `nevergrad` or edits this sentence (checked `gh pr list
--search` for `intersphinx`, `nevergrad`, and the `ray-contribute`
annotations text). ray-project#65644 dropped eight other zero-resolution targets;
this continues that hygiene on a target that has since regressed to
zero. ray-project#65604 (dropping `pytorch_lightning`) is closed.

## Why this isn't trivial busywork

It removes a committed binary snapshot plus a monthly refresh obligation
on measured evidence, and it corrects a documented claim that could lead
a contributor into a build-breaking change. The two edits share the
intersphinx-resolution surface and land together rather than as separate
one-line PRs.

## Tests

Faithful local RtD build of this branch, mirroring the Read the Docs
`-W` config:

```
python -m sphinx --keep-going -b html -d _build/doctrees -a -E -W -j auto -T -D language=en source _build/html
```

Result: `build succeeded.`, exit 0 (zero Sphinx warnings under `-W`).
Post-build grep confirms `nevergrad` now resolves no markers and no `-W`
failure was introduced by its removal (it resolved nothing before the
drop, so nothing regressed). The Read the Docs PR-preview build is the
authoritative gate and runs on this PR.

## AI assistance

This change was prepared with AI assistance (Claude Code). The
measurement, edits, and local build were reviewed by the submitter.

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
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 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