Skip to content

[docs] Convert Ray Data prose pages from RST to MyST - #66375

Merged
dstrodtman merged 4 commits into
masterfrom
doc-1524-data-prose-myst
Sep 23, 2026
Merged

dstrodtman merged 4 commits into
masterfrom
doc-1524-data-prose-myst

Conversation

@dstrodtman

@dstrodtman dstrodtman commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Why

Layer 2 of the Ray Data IA cleanup: convert the hand-written prose pages under doc/source/data/ from reStructuredText to MyST Markdown. MyST is the standard for new Ray doc pages, and a lint check rejects newly-added .rst, so bringing the existing Data prose onto MyST puts the whole surface on one format.

Follows #66352 (layer 1, the filename-slug renames), now merged. This branch is rebased onto master.

What

Faithful, format-only conversion of 23 prose pages. No content changes; the rendered HTML is preserved, so the Read the Docs preview diffs empty against /en/master. Source line-wrapping is kept verbatim so the diff stays line-aligned with the RST; the soft-wrap reflow is a separate follow-up commit, not part of this PR.

  • All section labels preserved by name, so external {ref}/:ref: callers resolve unchanged.
  • 153 testcode, 79 testoutput, and 3 doctest blocks carried over with counts unchanged: real executed blocks become {testcode}/{testoutput}/{doctest} fences, illustrative blocks become plain fences.
  • Images use {image} fences (not ![]()); tab-sets, dropdowns, and admonitions use colon fences; literalinclude targets and their start/end markers verified.
  • Same-page and cross-page section links translated to MyST fragment form; scheme-less, .rst, and relative .html# link forms all checked clean.

Not in scope

  • data/api/ (autosummary plus generated-stub include::) is deferred to the API-reference toolchain migration.
  • The two doctest-wired files owned by a separate batch (batch-inference.rst, transforming-data.rst) stay .rst.
  • Prose/style cleanup. Converting these pages brings them under Vale for the first time (pre-commit only lints changed files), surfacing pre-existing prose debt. To keep this PR a provably faithful format change, the Vale hook scoped to doc/source/data/ is temporarily disabled on master; the cleanup and Vale re-enable are tracked separately.

Verification

  • Static checks pass on all 23 .md: backtick and colon fences balance, no residual RST outside fences, no leaked scaffolding, every label present, no forbidden link forms.
  • Block-count reconciliation exact (153 / 79 / 3, source to .md, per file).
  • doc/BUILD.bazel's Data doctest rules glob source/data/**/*.md, so doctest coverage is preserved with no BUILD edit.
  • Relying on the RtD preview build (fail_on_warning: true) as the reference-resolution gate and render_diff.py against /en/master as the faithfulness gate.

🤖 Generated with Claude Code

@dstrodtman
dstrodtman requested review from a team as code owners September 22, 2026 18:55

@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 migrates the Ray Data documentation from reStructuredText (.rst) format to MyST Markdown (.md) format across multiple files, updating directives, code blocks, and cross-references accordingly. The review feedback highlights several minor issues in the newly added code examples, specifically a missing comma in the Snowflake connection example in loading-data.md, a missing os import in the partitioned dataset writing example in saving-data.md, and a missing transforms import in the PyTorch dataset migration example in working-with-pytorch.md.

def create_connection():
return snowflake.connector.connect(
user=...,
password=...

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

There is a missing comma after password=... in the Snowflake connection code block. This will cause a SyntaxError when users copy and run the code.

Suggested change
password=...
password=...,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied in #66419, the style pass for this page (4c96cd7), so this PR stays a byte-for-byte conversion. The example is skipped in tests, so the error only reached readers.

Comment on lines +185 to +186
import ray
import pandas as pd

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 helper function print_directory_tree uses the os module (e.g., os.walk, os.sep, os.path.basename), but os is not imported in this code block. Adding import os makes the code snippet self-contained and copy-pasteable.

Suggested change
import ray
import pandas as pd
import os
import ray
import pandas as pd

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied in #66420, the style pass for this page (d04c7cf), so this PR stays a byte-for-byte conversion. The block passes as is because os comes from an earlier block in the page's shared doctest namespace, but the import makes it run on its own.

Comment on lines +467 to +468
```{testcode}
import torchvision

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 code block uses transforms.Compose but only imports torchvision and ray. Adding from torchvision import transforms ensures the code block runs successfully without raising a NameError.

Suggested change
```{testcode}
import torchvision
import torchvision
from torchvision import transforms
import ray

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied in #66422, the style pass for this page (be922d4), so this PR stays a byte-for-byte conversion. The block passes as is because the PyTorch tab above imports transforms into the shared doctest namespace, but a reader copying only this tab would hit a NameError.

@ray-gardener ray-gardener Bot added docs An issue or change related to documentation data Ray Data-related issues labels Sep 22, 2026
@dstrodtman
dstrodtman force-pushed the doc-1524-data-prose-myst branch 2 times, most recently from 4a79a16 to cbe593a Compare September 22, 2026 19:36
@dstrodtman

Copy link
Copy Markdown
Contributor Author

Verification complete.

  • Build: RtD preview is green under fail_on_warning, so every label, {ref}, link, toctree entry, literalinclude, and sphinx-design directive resolves.
  • Render diff: compared the preview against /en/master and against the layer-1 rename preview (to isolate this layer) for all 23 pages. Remaining diffs are benign and explainable: same-page section links now resolve as internal refs (reference external→reference internal, same href/text); RST comments became HTML comments; and .. testcode:: blocks whose first content line abutted the directive with no blank line now display that first line (e.g. import ray) — docutils had dropped it as a directive argument, so this is a fidelity gain and execution is unchanged.

Two real regressions were caught by the render diff and fixed in shuffling-data.md (both built green but rendered wrong):

  1. The "Local buffer shuffle vs. map_batches shuffle" {list-table} used a backtick fence, but its caption contains backticks, which invalidates a backtick-fence info string — the table and everything after it rendered as literal text. Switched to a :::{list-table} colon fence.
  2. The % of baseline header rendered empty because a list-table cell whose content starts with % is parsed as a MyST comment. Escaped it as \%.

The table now renders with all three headers and seven rows, and the downstream headings, note, and testcode blocks render normally.

Base automatically changed from doc-1693-data-landing-index to master September 23, 2026 16:50
@matthewdeng
matthewdeng requested review from a team as code owners September 23, 2026 16:50
@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Sep 23, 2026
dstrodtman and others added 4 commits September 23, 2026 13:14
Faithful, format-only conversion of 23 prose pages under doc/source/data/
from reStructuredText to MyST Markdown. No content changes; the rendered
HTML is preserved. Source line-wrapping is kept verbatim so the diff stays
line-aligned with the RST; the soft-wrap reflow is a separate follow-up.

Excludes the two doctest-wired files owned by a separate batch
(batch-inference.rst, transforming-data.rst) and the data/api/ reference
files, which are deferred to the API-reference toolchain migration.

All section labels are preserved by name; 153 testcode, 79 testoutput, and
3 doctest blocks carry over with counts unchanged; images use {image}
fences; same-page and cross-page section links are translated to MyST
fragment form.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
The RST source split these links' text and `<url>` across lines. RST
strips that whitespace, but the conversion left the line break inside
the MyST link brackets, so the rendered link text ended in a trailing
space. Join the text and the URL so the links render as on master.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
The doctest bazel macro passes --doctest-glob='*.md', so pytest's stock
doctest parser reads the raw Markdown. It takes expected output up to the
next blank line, which swallowed the closing ``` fence and failed
//doc:source/data/working-with-tensors on dtype('uint8'). A blank line
before each closing fence ends the expected output. RST ended these blocks
at the dedent, so the converted page is the first to hit it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
The RST enumerator is followed by an unindented line, so docutils renders
the two options as one paragraph. CommonMark starts a list there, so
escape the leading marker to match the current render.

Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman
dstrodtman force-pushed the doc-1524-data-prose-myst branch from 69ce885 to ee26f18 Compare September 23, 2026 17:14
@dstrodtman

Copy link
Copy Markdown
Contributor Author

Render-diff fix for data/shuffling-data: the "Global shuffle" options now render as one paragraph, as on /en/master. In the RST, the 1. enumerator is followed by an unindented line, so docutils reads the options as paragraph text, while Markdown started an ordered list. The new commit escapes the leading marker (1\.). The stack above is restacked on it.

The page's render diff against /en/master has two remaining differences, both explainable and neither from this fix:

  • The "block order shuffling" example now shows import ray. In the RST, .. testcode:: has no blank line before import ray, so docutils parses that line as the directive's argument and drops it from the rendered block. The MyST puts it in the body, as intended.
  • The "file a Ray Data issue" link now encodes [data] as %5Bdata%5D. It's the same URL.

@dstrodtman
dstrodtman enabled auto-merge (squash) September 23, 2026 18:40

@x01-emre x01-emre left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dstrodtman
dstrodtman merged commit 3673468 into master Sep 23, 2026
7 checks passed
@dstrodtman
dstrodtman deleted the doc-1524-data-prose-myst branch September 23, 2026 18:55
dstrodtman added a commit that referenced this pull request Sep 23, 2026
## Why

This is the soft-wrap follow-up that #66375 defers. #66375 keeps the RST
line wrapping verbatim so its diff stays line-aligned with the source.
This PR then puts the Ray Data prose on one line per paragraph and list
item, which keeps later prose and style edits small and easy to review.

Stacked on #66375, which is stacked on #66352. Review and merge those
first. This branch targets `doc-1524-data-prose-myst`.

## What

This is a whitespace-only reflow of the Markdown pages under
`doc/source/data/`, excluding `api/`, done with
`doc/.claude/skills/ray-soft-wrap/scripts/softwrap.py`. It only joins
lines inside a paragraph or list item. Words, code and `testcode`
fences, directives and their options, tables, `(label)=` targets, and
front matter aren't touched.

- 22 of 29 pages change. The other 7 were already soft-wrapped.
- Besides the 23 pages #66375 converts, this also covers
`how-to-avoid-ooms.md` (one join). `contributing/` needed no changes.

## Verification

- `verify.py`: all 29 files report `content=ok render=ok idempotent=ok`.
That covers byte-identical non-whitespace content, identical
CommonMark+GFM rendered HTML, and a stable fixed point.
- The render check can't see MyST-only syntax, so I also ran a
structural check: per file, the counts of colon and backtick fences,
directive option lines, `{grid-item-card}` / `^^^` / `+++`,
`{tab-item}`, `(label)=` targets, headings, and raw-HTML lines match
before and after. No fence marker was joined into the middle of a line.
- Spot-reviewed the diff around admonitions, lists, and code blocks.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
dstrodtman added a commit that referenced this pull request Sep 23, 2026
… for Ray Data docs (#66412)

## Why

This PR collects the Vale configuration changes for the Ray Data docs
into one review:

- It prepares the Ray Data docs for a style and grammar pass. Vale can
then flag real problems, such as future tense, without noise from valid
terms it doesn't know.
- It adds Vale rules to the shared `Ray` style for patterns that the Ray
Data style pass fixed by hand, over and over, across the style-pass PRs
stacked above this one.

The rules were written after the style pass, so they sit lower in the
stack than the work that motivated them. They touch the same Vale
configuration for the same reason, so they're reviewed and landed
together here. The rule changes were previously in #66424, now closed.

Stacked on #66381, which is stacked on #66375 and #66352. Review and
merge those first. This branch targets `doc-1524-data-prose-softwrap`.

## What

### Vocabulary and suppressions

- Removes the two `<!-- vale off -->` / `<!-- vale on -->` blocks from
`custom-datasource-example.md`. This was the only Ray Data page that
disabled Vale. Both blocks suppressed the future-tense check, and the
style pass should fix that prose rather than hide it.
- Updates `.vale/styles/config/vocabularies/Data/accept.txt`:
- Adds `BentoML`, `CIFAR`, `[Dd]ownscal(e|es|ed|ing)`, `JPEG`,
`Kinetica`, `NVTabular`, `Petastorm`, `Psycopg`, `PyArrow`, `Tekken`,
`torchtext`, and `torchvision`.
- Changes `Datasinks?` to `[Dd]atasinks?` so lowercase "datasink" is
accepted, matching `[Dd]atasource(s)?`.
- Removes entries that duplicate other vocabularies: `docstrings`,
`NLP`, `PIL`, and `TPU(s)?` are in General, and `XGBoost` is in Train.
- Removes entries that don't appear in the prose of any `.md` or `.rst`
page under `doc/source/`: `assess_quality`, `process_file`,
`[Mm]ultiget(s)?`, `PDFs`, `Predibase('s)?`, `[Rr]eformat(s)?`, and
`[Pp]ostprocessor(s)?`.
- Renames the `ABS` tab to `Azure Blob Storage` in `loading-data.md` and
`saving-data.md`, because the acronym isn't widely known.

The remaining spelling and terms alerts are intentional. They point at
text the style pass fixes: `Bento ML`, `Sagemaker`, `Numpy`, `pyarrow`,
`underly`, `undersaturated`, and the unformatted `map_batches` and
`smart_resize` identifiers.

### New rules

These are rule files only. The `Ray` style is still registered for RLlib
pages only, in `.vale.ini`, and nothing changes what Vale runs in CI.
Vale on the Ray Data docs is disabled on purpose for now.

| Rule | Type | Catches | Why this type |
|---|---|---|---|
| `Ray.SuchAs` | existence, warning | "like" after a plural noun that
introduces examples, such as "formats like", "methods like", and "APIs
like" | "like" is also a comparison ("works like a queue") and a verb
("if you'd like"), so a substitution would corrupt that prose. The rule
only flags, and only after these nouns. |
| `Ray.Brands` | substitution, case-sensitive | `HuggingFace` becomes
`Hugging Face` | The literal has no other sense. The match is
case-sensitive so lowercase identifiers such as `huggingface_hub` never
match, and inline code is skipped anyway. |
| `Ray.Capitalization` | existence, case-sensitive | `Ray Tasks`, `Ray
Actors`, `Ray Objects`, `Ray Workers`, `Ray Nodes`, `Ray Placement
Groups` | The style guide lowercases generic nouns that name a Ray
concept. Flag only, because link text that quotes a page title can keep
the title's capitals. |
| `Ray.LeadIns` | existence, warning | `For example:`, `For instance:`,
and `Here's an example` fragments used as lead-ins | The guide wants
complete-sentence lead-ins. The right rewrite depends on the example, so
the rule only flags. |
| `Ray.Filler` additions | existence | "under the hood", "seamlessly" |
Both came up repeatedly in the pass. |

Each rule links to the matching section of `writing-style.md`.

Left out on purpose:

- **Slashes between words:** `I/O`, `TCP/IP`, and `and/or` are
legitimate, and a pattern can't tell them apart.
- **Gerund task headings:** some gerund H1s, such as "Loading data", are
kept on purpose to match the nav titles.
- **"Ray Cluster" in `Ray.Capitalization`:** it appears mostly in page
and section titles ("Ray Clusters Overview") and in the "Ray Cluster
Launcher" component name.
- **"Pandas" to "pandas":** a case-sensitive swap misfires at the start
of a sentence.

## Verification

Vocabulary: `vale doc/source/data` with Vale 3.12: `Vale.Spelling` drops
from 26 to 10 alerts, `Google.Acronyms` from 4 to 0, and the remaining
`Vale.Spelling` and `Vale.Terms` alerts are all in the list above.
`custom-datasource-example.md` now reports its three `Google.Will`
alerts.

Rules:

- A test file with positive and negative cases, run with the real
vocabularies loaded, so accept-list shadowing would show up. That check
caught the `APIs` accept-list entry shadowing `Ray.SuchAs`, so the rule
sets `vocab: false`. Every positive case fires. None of these fire:
  - "works like a queue" and "if you'd like"
  - `huggingface_hub` in inline code
  - "Ray Tasks" as `{ref}` link text
  - lowercase "Ray tasks"
- The full `Ray` style, run by hand against all 25 top-level
`doc/source/data/*.md` pages at the head of the style-pass stack,
reports five warnings and none from the new rules:
- "For now" in `mixing-data.md` and "Currently" in `performance-tips.md`
are temporary-limitation signals that the stack keeps on purpose.
- "seamlessly" in `comparisons.md` and "very" twice in
`shuffling-data.md` were filler that the pass missed. They're now fixed
in #66413 and #66420, the style PRs for those pages.
- That run was at the head of the style-pass stack, not at this branch.
Running the `Ray` style by hand against the Data pages here might report
matches that the stack above fixes. That doesn't affect CI, since the
`Ray` style isn't registered for Data pages.

The Vale pre-commit hook is still commented out, so this doesn't change
CI.

## AI assistance

I made these changes with AI assistance (Claude Code).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
richardliaw pushed a commit that referenced this pull request Sep 24, 2026
## Description

Style and grammar pass on Ray Data docs against Ray's [writing-style
guide](https://docs.ray.io/en/master/ray-contribute/writing-style.html).
Prose only: no code, `literalinclude` blocks, URLs, anchors, or role
targets changed.

Stacked on #66412, which is stacked on #66381, #66375, and #66352.
Review and merge those first. This branch targets
`doc-1524-data-vale-cleanup`. It combines this PR's original
comparisons-page pass with the custom datasource pass first opened as
#66416.

### `comparisons.md`

- Renames the legacy "Datasets" product name to "Ray Data". The page
already used "Ray Data" for the same subject in the same lists.
Third-party "Torch datasets" and "TensorFlow datasets" are unchanged.
- Fixes `SageMaker` and `BentoML` casing, which #66412 left as
intentional alerts for this pass.
- Uses contractions, active voice, second person, and "such as" for
examples.
- Removes "our blog post", "3rd", "e.g.", mid-sentence colons, and
semicolons.
- Fixes the grammar of the BentoML-and-Spark sentence and subject-verb
agreement for "TensorFlow datasets".
- Sentence-cases the dropdown titles and makes them parallel.
- Adds a lead-in sentence to each comparison list and uses the
`**Term**: explanation` definition-list form from the style guide.
- Collapses runs of blank lines between dropdowns to one.

### `custom-datasource-example.md`

This is the page whose `<!-- vale off -->` blocks #66412 removed so the
future-tense prose they hid could be fixed.

- Replaces the three "you'll" future-tense sentences with present tense.
- Names Ray Data as the actor in "file types that aren't natively
supported" and "Images are already supported".
- Replaces "functionality" with "behavior", "Once you've implemented"
with "After you implement", and the "(for example, `"png"`)"
parenthetical with "such as".
- Cuts the time-relative "in the future" from the write-interface note
but keeps "is under active development and might change", which is the
stability warning.
- Corrects the block types. The page said blocks can be dictionaries of
NumPy arrays, but `Block` in `block.py` is only a PyArrow table or a
pandas DataFrame, including at the commit the page links to. NumPy
dictionaries are a batch format. This is a factual correction.
- Sentence-cases the title: "Advanced: Read and write custom file
types".
- Updates the one link in `loading-data.md` whose text quotes the old
title.

## Why this isn't a duplicate

No other open PR edits `comparisons.md`, `custom-datasource-example.md`,
or `doc_code/custom_datasource_example.py`. #55038 adds an experimental
SQL API and SQL docs but doesn't edit these pages. See the related
question below. I also checked the open Data PRs that mention
datasources, including #65760, #57239, and #55467.

## Questions for reviewers

Apart from the block-types correction, this pass kept the scope of every
claim. These existing claims might be stale, and a Ray Data maintainer
is better placed to judge them:

- **Third-party feature claims on `comparisons.md`:** Petastorm supports
only Parquet, NVTabular supports only Parquet, CSV, and Avro, TensorFlow
datasets support only file interleaving across worker shards, and Torch
datasets have no I/O layer.
- **SQL interface:** "Ray Data doesn't have a SQL interface" would go
stale if #55038 lands.
- **Comparisons with no measure:** "a streaming paradigm that's better
suited to GPU workloads" and "can't effectively handle large datasets".
The style guide's "Keep comparisons precise" section applies, but no
source for a measure is on the page.
- **Repeated comparison points:** the training-ingest dropdowns repeat
three points almost word for word. A single comparison table might read
better. That moves content, so it isn't in this PR.
- **Duplicate headings:** `custom-datasource-example.md` has two H3s
named "Implement the constructor", one under reading and one under
writing. "Implement the datasource constructor" and "Implement the
datasink constructor" would make the right-side TOC clearer. I left them
as they are.

## Verification

- `vale` with Vale 3.12, run from the repo root: 0 alerts on
`comparisons.md`, down from 24, and 0 on `custom-datasource-example.md`,
down from 6. `loading-data.md` has no alerts on the edited line.
- `codespell`: no hits.
- The pre-commit hooks passed on each commit.
- A structural check against each pre-edit file confirmed the code-fence
count, role targets, anchors, and URLs are unchanged.
- For the reworded title, a grep for inbound links found the `{ref}` in
`loading-data.md`, updated here, and a toctree entry in `user-guide.md`,
which doesn't depend on the title. No links use the heading's implicit
slug.
- I didn't run a local Sphinx build. The Read the Docs preview covers
rendering.

## AI assistance

I made these edits with AI assistance (Claude Code) and reviewed the
full diff by hand.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
dstrodtman added a commit that referenced this pull request Sep 30, 2026
## Why

Small, self-contained docs fixes found during other docs work, collected
into one PR. Ray's `AGENTS.md` asks for trivial edits to be bundled
instead of opened as one-off PRs, so this batch keeps collecting fixes
and goes up for review about once a week. Each fix is its own commit, so
a reviewer can drop any one without touching the rest.

## What

- **Trailing space inside link text** (`vsphere.md`,
`data/contributing/contributing-guide.md`). Two links' text ended in a
space, such as `[… (WCP) enabled ](…)`, so the rendered underline ran
past the last word. Removed the space. Found while fixing the same
pattern in the Ray Data MyST conversion (#66375).
- **Duplicated paragraph** (`serve/llm/user-guides/configuration.md`).
The "Set `accelerator_type`" paragraph appeared twice back to back, with
the same content in a different sentence order, apparently a
suggestion-merge artifact from #65026 that also dropped the blank line
after the heading. Kept the first copy and restored the blank line.
- **Escaped sub-bullets** (`ray-core/internals/autoscaler-v2.md`,
`ray-core/internals/ray-event-exporter.md`). The rST originals nested
these sub-bullets without the blank line rST requires, so they rendered
as run-on text, and the MyST conversion (#66430) carried them over as
`\-`. Dropped the escapes so they render as the nested lists the author
intended. Both of these fixes turned up during the soft-wrap pass in
#66607.

## Not a duplicate

There's no open PR touching any of these files, and a GitHub search for
`vsphere.md`, `contributing-guide.md`, "vSphere WCP", `configuration.md`
with `accelerator_type`, `autoscaler-v2`, and `ray-event-exporter` finds
nothing related.

## Testing

- Rendered both pages with `markdown-it-py` (CommonMark). Each link's
text now ends right at `</a>`, with no trailing whitespace.
- A regex scan of every `doc/source/**/*.md` outside code fences for
whitespace before `](` finds these two as the only cases on `master`.
- Rendered `autoscaler-v2.md` and `ray-event-exporter.md` with
`markdown-it-py` and confirmed each sub-bullet group is now a nested
`<ul>` under its parent item.
- Confirmed `configuration.md` has one copy of the paragraph, preceded
by a blank line after the heading.
- Pre-commit hooks passed on every commit.

AI assistance (Claude Code) was used to find and make these fixes. I
reviewed each change.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
dstrodtman added a commit that referenced this pull request Oct 5, 2026
…m RST to MyST (#66673)

## Why are these changes needed?

This PR converts the remaining prose pages under `ray-observability/`,
`ray-more-libs/`, `ray-references/`, and `ray-air/` from
reStructuredText to MyST Markdown. It continues the RST-to-MyST
conversion that already landed for `ray-core/` (#66430), `data/`
(#66375), and the doctest-wired pages (#66461). The conversion is format
only: the goal is for each page's rendered HTML to match `/en/master`.

There are five commits:

1. **Conversion.** This commit converts 25 pages, `git rm`s the `.rst`
sources, and adds one `doc/BUILD.bazel` exclude, which commit 5 reverts.
Prose keeps its source line wrapping, so the diff lines up with the
`.rst` line by line.
2. **Soft-wrap.** This commit reflows whitespace only, to one line per
paragraph and list item. `verify.py` from `ray-soft-wrap` confirms that
the non-whitespace bytes and the rendered HTML don't change on all 25
files.
3. **Render fixes.** This commit fixes six regressions that the render
diff against `/en/master` caught, even though the build was green. In
`modin`, two bare-word RST link references (`Modin_`, `documentation_`)
rendered as literal text. In `getting-started`, a bold URL was
autolinked. In `system-metrics`, a URL in a table cell lost its link. In
`dask-on-ray`, `_not_` rendered as italics. In `glossary`, the inline
`.. TODO: RLlib` text, which `/en/master` shows, had become a comment.
The commit also adds compat anchors to five headings with apostrophes
(see below).
4. **Pseudo-lists.** This commit restores three pseudo-lists that the
soft-wrap merged into one line.
5. **Review feedback.** This commit removes the glossary's placeholder
TODO entries, reverts the `doc/BUILD.bazel` change so the PR stays
docs-only, and fixes defects that the review flagged in the `.rst`
sources: a stray definition list in `dask-on-ray`, an unconverted link
in `system-metrics`, an extra parenthesis in `debug-failures`, typos in
`debug-hangs` and `optimize-performance`, a grammar slip in
`ray-debugging`, and em-dash pseudo-list items in `general-debugging`,
which are now a bulleted list.

### Scope

- `ray-air/`: `getting-started` and `deployment`, converted together.
`getting-started` includes `deployment`, and the include now points at
`deployment.md`.
- `ray-observability/`: 14 pages, including `user-guides/debug-apps/`
and `reference/system-metrics`.
- `ray-more-libs/`: 9 pages.
- `ray-references/`: `glossary` and `faq`.

**Left as RST:** `ray-observability/reference/api.rst` (`autosummary`)
and `ray-observability/reference/cli.rst` (`click`). They're API
reference pages, so they stay RST along with the other `*/api/`
reference trees.

### Construct notes for reviewers

- **Glossary.** The glossary is a native MyST `{glossary}` directive,
not RST wrapped in `{eval-rst}`. Sphinx's `glossary` directive parses
each definition with the host parser, so the definitions are Markdown
now. The glossary's placeholder `.. TODO:` entries are removed. Missing
terms can be identified separately.
- **Glossary doctest.** Nothing ran the glossary's `.. doctest::` block
as `.rst`: `pytest-sphinx` doesn't execute `doctest` sections, and
`--doctest-glob='*.md'` doesn't match `.rst`. As `.md`, the stock
doctest parser would start running its five `>>>` prompts, and the
`[[0],[1],...,[3],[4]]` output can't pass without `ELLIPSIS`. Each
prompt now carries `# doctest: +SKIP`, which keeps coverage the same as
master without a `doc/BUILD.bazel` change. Sphinx's default
`trim_doctest_flags` strips the flag from the rendered page, as in
`data/working-with-tensors.md`. If you'd rather fix the expected output
and start testing it, I can do that in a follow-up.
- **FAQ.** `faq.md` includes `_includes/_help-links.md`, the Markdown
copy of `_help.rst` that #66417 added. `_help.rst` stays, because
`cluster/vms/user-guides/community/yarn.rst` and `tune/key-concepts.rst`
still include it.
- **Comparison table.** The grid table in
`ray-collective-custom-backend` is now a native `{list-table}`.
- **Line blocks.** The line blocks in `dask-on-ray`'s version table are
now Markdown hard line breaks. This is an expected render difference:
`<p>` with `<br>` instead of `div.line-block`.

### Dead links fixed on the way

These links were broken on `/en/master` and fail `fail_on_warning` when
they're transcribed into MyST:

- `joblib` and `multiprocessing` linked to relative `actors.html` and
`installation.html`, which resolve under `ray-more-libs/` and return
404. They now link to `{doc}` `/ray-core/actors` and
`/ray-overview/installation`.
- `ray-collective` linked to `#api-reference`, but the heading's anchor
is `#api-references`.

### Open PRs that edit these pages

Each of these PRs needs to move its change onto the `.md` file: #66363
(`ray-event-export`), #65693 and #65583 (`system-metrics`), and #64957
(`joblib`, `multiprocessing`). #65321 edits `reference/cli.rst`, which
this PR doesn't convert.

## Related issue number

None.

## Checks

- [x] I've signed off every commit (`git commit -s`).
- [x] Duplicate check: no open PR converts these pages. I searched open
PRs for MyST, observability, glossary, and more-libs, and for open PRs
that edit these files.
- **Doctest parity:** `doctest_parity.py` (the `pytest-sphinx` parser,
run against `upstream/master`) reports the same sections and examples on
all 25 pages, before and after the soft-wrap: 12 examples before, 12
after.
- **Local doctest:** `pytest --doctest-modules --doctest-glob='*.md' -c
NO_PYTEST_CONFIG -p doctest_pytest_plugin` on the 24 converted pages in
the main target, with Ray nightly `bc900c2` on Python 3.10: 5 passed.
Those are the 5 files with examples. The glossary, now in the target
too, reports 1 skipped: the stock parser finds 5 examples and all 5
carry `+SKIP`.
- **Static checks:** frontmatter parses, fences balance, every label is
preserved, and there's no leftover RST outside fences or directives.
- **RtD preview:** green under `fail_on_warning` on all three commits.
- **Render diff** (`render_diff.py`, preview against `/en/master`,
filtering the two class-only differences every MyST page shows): 11 of
25 pages are identical. Every difference on the other 14 is one of
these:
- RST comments now emit `<!-- ... -->` HTML comments, which readers
don't see. Pages: `ray-air/*`, `ray-more-libs/index`, `ray-collective`,
`getting-started`, `general-debugging`, `glossary`.
- The `dask-on-ray` version table: Markdown hard line breaks (`<p>` with
`<br>`) replace RST line blocks (`div.line-block`).
- The `dask-on-ray` "Why use Dask on Ray?" item keeps its
definition-list structure. MyST adds a `myst` class to the `<dl>`, and
the class has no styling.
- Same-page fragment and `{doc}` links render as `reference internal`
instead of `reference external`. Pages: `ray-collective`, `joblib`,
`multiprocessing`. This list also includes the dead links fixed above.
- Headings with an apostrophe get a new anchor, because MyST drops the
apostrophe where docutils turned it into a hyphen. For example,
`#what-s-the-out-of-memory-error` becomes
`#whats-the-out-of-memory-error`. Five of these headings had no label,
so each gets a compat target with the old slug, which keeps existing
links working. The sixth, in `optimize-performance`, already carries the
`dashboard-cprofile` label.

This PR was written with AI assistance (Claude Code). I reviewed the
changes and ran the checks above.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
## Why

Layer 2 of the Ray Data IA cleanup: convert the hand-written prose pages
under `doc/source/data/` from reStructuredText to MyST Markdown. MyST is
the standard for new Ray doc pages, and a lint check rejects newly-added
`.rst`, so bringing the existing Data prose onto MyST puts the whole
surface on one format.

Follows ray-project#66352 (layer 1, the filename-slug renames), now merged. This
branch is rebased onto `master`.

## What

Faithful, format-only conversion of 23 prose pages. No content changes;
the rendered HTML is preserved, so the Read the Docs preview diffs empty
against `/en/master`. Source line-wrapping is kept verbatim so the diff
stays line-aligned with the RST; the soft-wrap reflow is a separate
follow-up commit, not part of this PR.

- All section labels preserved by name, so external `{ref}`/`:ref:`
callers resolve unchanged.
- 153 `testcode`, 79 `testoutput`, and 3 `doctest` blocks carried over
with counts unchanged: real executed blocks become
`{testcode}`/`{testoutput}`/`{doctest}` fences, illustrative blocks
become plain fences.
- Images use `{image}` fences (not `![]()`); tab-sets, dropdowns, and
admonitions use colon fences; `literalinclude` targets and their
start/end markers verified.
- Same-page and cross-page section links translated to MyST fragment
form; scheme-less, `.rst`, and relative `.html#` link forms all checked
clean.

## Not in scope

- `data/api/` (autosummary plus generated-stub `include::`) is deferred
to the API-reference toolchain migration.
- The two doctest-wired files owned by a separate batch
(`batch-inference.rst`, `transforming-data.rst`) stay `.rst`.
- Prose/style cleanup. Converting these pages brings them under Vale for
the first time (pre-commit only lints changed files), surfacing
pre-existing prose debt. To keep this PR a provably faithful format
change, the Vale hook scoped to `doc/source/data/` is temporarily
disabled on master; the cleanup and Vale re-enable are tracked
separately.

## Verification

- Static checks pass on all 23 `.md`: backtick and colon fences balance,
no residual RST outside fences, no leaked scaffolding, every label
present, no forbidden link forms.
- Block-count reconciliation exact (153 / 79 / 3, source to `.md`, per
file).
- `doc/BUILD.bazel`'s Data doctest rules glob `source/data/**/*.md`, so
doctest coverage is preserved with no BUILD edit.
- Relying on the RtD preview build (`fail_on_warning: true`) as the
reference-resolution gate and `render_diff.py` against `/en/master` as
the faithfulness gate.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 4.8 <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
## Why

This is the soft-wrap follow-up that ray-project#66375 defers. ray-project#66375 keeps the RST
line wrapping verbatim so its diff stays line-aligned with the source.
This PR then puts the Ray Data prose on one line per paragraph and list
item, which keeps later prose and style edits small and easy to review.

Stacked on ray-project#66375, which is stacked on ray-project#66352. Review and merge those
first. This branch targets `doc-1524-data-prose-myst`.

## What

This is a whitespace-only reflow of the Markdown pages under
`doc/source/data/`, excluding `api/`, done with
`doc/.claude/skills/ray-soft-wrap/scripts/softwrap.py`. It only joins
lines inside a paragraph or list item. Words, code and `testcode`
fences, directives and their options, tables, `(label)=` targets, and
front matter aren't touched.

- 22 of 29 pages change. The other 7 were already soft-wrapped.
- Besides the 23 pages ray-project#66375 converts, this also covers
`how-to-avoid-ooms.md` (one join). `contributing/` needed no changes.

## Verification

- `verify.py`: all 29 files report `content=ok render=ok idempotent=ok`.
That covers byte-identical non-whitespace content, identical
CommonMark+GFM rendered HTML, and a stable fixed point.
- The render check can't see MyST-only syntax, so I also ran a
structural check: per file, the counts of colon and backtick fences,
directive option lines, `{grid-item-card}` / `^^^` / `+++`,
`{tab-item}`, `(label)=` targets, headings, and raw-HTML lines match
before and after. No fence marker was joined into the middle of a line.
- Spot-reviewed the diff around admonitions, lists, and code blocks.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
… for Ray Data docs (ray-project#66412)

## Why

This PR collects the Vale configuration changes for the Ray Data docs
into one review:

- It prepares the Ray Data docs for a style and grammar pass. Vale can
then flag real problems, such as future tense, without noise from valid
terms it doesn't know.
- It adds Vale rules to the shared `Ray` style for patterns that the Ray
Data style pass fixed by hand, over and over, across the style-pass PRs
stacked above this one.

The rules were written after the style pass, so they sit lower in the
stack than the work that motivated them. They touch the same Vale
configuration for the same reason, so they're reviewed and landed
together here. The rule changes were previously in ray-project#66424, now closed.

Stacked on ray-project#66381, which is stacked on ray-project#66375 and ray-project#66352. Review and
merge those first. This branch targets `doc-1524-data-prose-softwrap`.

## What

### Vocabulary and suppressions

- Removes the two `<!-- vale off -->` / `<!-- vale on -->` blocks from
`custom-datasource-example.md`. This was the only Ray Data page that
disabled Vale. Both blocks suppressed the future-tense check, and the
style pass should fix that prose rather than hide it.
- Updates `.vale/styles/config/vocabularies/Data/accept.txt`:
- Adds `BentoML`, `CIFAR`, `[Dd]ownscal(e|es|ed|ing)`, `JPEG`,
`Kinetica`, `NVTabular`, `Petastorm`, `Psycopg`, `PyArrow`, `Tekken`,
`torchtext`, and `torchvision`.
- Changes `Datasinks?` to `[Dd]atasinks?` so lowercase "datasink" is
accepted, matching `[Dd]atasource(s)?`.
- Removes entries that duplicate other vocabularies: `docstrings`,
`NLP`, `PIL`, and `TPU(s)?` are in General, and `XGBoost` is in Train.
- Removes entries that don't appear in the prose of any `.md` or `.rst`
page under `doc/source/`: `assess_quality`, `process_file`,
`[Mm]ultiget(s)?`, `PDFs`, `Predibase('s)?`, `[Rr]eformat(s)?`, and
`[Pp]ostprocessor(s)?`.
- Renames the `ABS` tab to `Azure Blob Storage` in `loading-data.md` and
`saving-data.md`, because the acronym isn't widely known.

The remaining spelling and terms alerts are intentional. They point at
text the style pass fixes: `Bento ML`, `Sagemaker`, `Numpy`, `pyarrow`,
`underly`, `undersaturated`, and the unformatted `map_batches` and
`smart_resize` identifiers.

### New rules

These are rule files only. The `Ray` style is still registered for RLlib
pages only, in `.vale.ini`, and nothing changes what Vale runs in CI.
Vale on the Ray Data docs is disabled on purpose for now.

| Rule | Type | Catches | Why this type |
|---|---|---|---|
| `Ray.SuchAs` | existence, warning | "like" after a plural noun that
introduces examples, such as "formats like", "methods like", and "APIs
like" | "like" is also a comparison ("works like a queue") and a verb
("if you'd like"), so a substitution would corrupt that prose. The rule
only flags, and only after these nouns. |
| `Ray.Brands` | substitution, case-sensitive | `HuggingFace` becomes
`Hugging Face` | The literal has no other sense. The match is
case-sensitive so lowercase identifiers such as `huggingface_hub` never
match, and inline code is skipped anyway. |
| `Ray.Capitalization` | existence, case-sensitive | `Ray Tasks`, `Ray
Actors`, `Ray Objects`, `Ray Workers`, `Ray Nodes`, `Ray Placement
Groups` | The style guide lowercases generic nouns that name a Ray
concept. Flag only, because link text that quotes a page title can keep
the title's capitals. |
| `Ray.LeadIns` | existence, warning | `For example:`, `For instance:`,
and `Here's an example` fragments used as lead-ins | The guide wants
complete-sentence lead-ins. The right rewrite depends on the example, so
the rule only flags. |
| `Ray.Filler` additions | existence | "under the hood", "seamlessly" |
Both came up repeatedly in the pass. |

Each rule links to the matching section of `writing-style.md`.

Left out on purpose:

- **Slashes between words:** `I/O`, `TCP/IP`, and `and/or` are
legitimate, and a pattern can't tell them apart.
- **Gerund task headings:** some gerund H1s, such as "Loading data", are
kept on purpose to match the nav titles.
- **"Ray Cluster" in `Ray.Capitalization`:** it appears mostly in page
and section titles ("Ray Clusters Overview") and in the "Ray Cluster
Launcher" component name.
- **"Pandas" to "pandas":** a case-sensitive swap misfires at the start
of a sentence.

## Verification

Vocabulary: `vale doc/source/data` with Vale 3.12: `Vale.Spelling` drops
from 26 to 10 alerts, `Google.Acronyms` from 4 to 0, and the remaining
`Vale.Spelling` and `Vale.Terms` alerts are all in the list above.
`custom-datasource-example.md` now reports its three `Google.Will`
alerts.

Rules:

- A test file with positive and negative cases, run with the real
vocabularies loaded, so accept-list shadowing would show up. That check
caught the `APIs` accept-list entry shadowing `Ray.SuchAs`, so the rule
sets `vocab: false`. Every positive case fires. None of these fire:
  - "works like a queue" and "if you'd like"
  - `huggingface_hub` in inline code
  - "Ray Tasks" as `{ref}` link text
  - lowercase "Ray tasks"
- The full `Ray` style, run by hand against all 25 top-level
`doc/source/data/*.md` pages at the head of the style-pass stack,
reports five warnings and none from the new rules:
- "For now" in `mixing-data.md` and "Currently" in `performance-tips.md`
are temporary-limitation signals that the stack keeps on purpose.
- "seamlessly" in `comparisons.md` and "very" twice in
`shuffling-data.md` were filler that the pass missed. They're now fixed
in ray-project#66413 and ray-project#66420, the style PRs for those pages.
- That run was at the head of the style-pass stack, not at this branch.
Running the `Ray` style by hand against the Data pages here might report
matches that the stack above fixes. That doesn't affect CI, since the
`Ray` style isn't registered for Data pages.

The Vale pre-commit hook is still commented out, so this doesn't change
CI.

## AI assistance

I made these changes with AI assistance (Claude Code).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
## Description

Style and grammar pass on Ray Data docs against Ray's [writing-style
guide](https://docs.ray.io/en/master/ray-contribute/writing-style.html).
Prose only: no code, `literalinclude` blocks, URLs, anchors, or role
targets changed.

Stacked on ray-project#66412, which is stacked on ray-project#66381, ray-project#66375, and ray-project#66352.
Review and merge those first. This branch targets
`doc-1524-data-vale-cleanup`. It combines this PR's original
comparisons-page pass with the custom datasource pass first opened as
ray-project#66416.

### `comparisons.md`

- Renames the legacy "Datasets" product name to "Ray Data". The page
already used "Ray Data" for the same subject in the same lists.
Third-party "Torch datasets" and "TensorFlow datasets" are unchanged.
- Fixes `SageMaker` and `BentoML` casing, which ray-project#66412 left as
intentional alerts for this pass.
- Uses contractions, active voice, second person, and "such as" for
examples.
- Removes "our blog post", "3rd", "e.g.", mid-sentence colons, and
semicolons.
- Fixes the grammar of the BentoML-and-Spark sentence and subject-verb
agreement for "TensorFlow datasets".
- Sentence-cases the dropdown titles and makes them parallel.
- Adds a lead-in sentence to each comparison list and uses the
`**Term**: explanation` definition-list form from the style guide.
- Collapses runs of blank lines between dropdowns to one.

### `custom-datasource-example.md`

This is the page whose `<!-- vale off -->` blocks ray-project#66412 removed so the
future-tense prose they hid could be fixed.

- Replaces the three "you'll" future-tense sentences with present tense.
- Names Ray Data as the actor in "file types that aren't natively
supported" and "Images are already supported".
- Replaces "functionality" with "behavior", "Once you've implemented"
with "After you implement", and the "(for example, `"png"`)"
parenthetical with "such as".
- Cuts the time-relative "in the future" from the write-interface note
but keeps "is under active development and might change", which is the
stability warning.
- Corrects the block types. The page said blocks can be dictionaries of
NumPy arrays, but `Block` in `block.py` is only a PyArrow table or a
pandas DataFrame, including at the commit the page links to. NumPy
dictionaries are a batch format. This is a factual correction.
- Sentence-cases the title: "Advanced: Read and write custom file
types".
- Updates the one link in `loading-data.md` whose text quotes the old
title.

## Why this isn't a duplicate

No other open PR edits `comparisons.md`, `custom-datasource-example.md`,
or `doc_code/custom_datasource_example.py`. ray-project#55038 adds an experimental
SQL API and SQL docs but doesn't edit these pages. See the related
question below. I also checked the open Data PRs that mention
datasources, including ray-project#65760, ray-project#57239, and ray-project#55467.

## Questions for reviewers

Apart from the block-types correction, this pass kept the scope of every
claim. These existing claims might be stale, and a Ray Data maintainer
is better placed to judge them:

- **Third-party feature claims on `comparisons.md`:** Petastorm supports
only Parquet, NVTabular supports only Parquet, CSV, and Avro, TensorFlow
datasets support only file interleaving across worker shards, and Torch
datasets have no I/O layer.
- **SQL interface:** "Ray Data doesn't have a SQL interface" would go
stale if ray-project#55038 lands.
- **Comparisons with no measure:** "a streaming paradigm that's better
suited to GPU workloads" and "can't effectively handle large datasets".
The style guide's "Keep comparisons precise" section applies, but no
source for a measure is on the page.
- **Repeated comparison points:** the training-ingest dropdowns repeat
three points almost word for word. A single comparison table might read
better. That moves content, so it isn't in this PR.
- **Duplicate headings:** `custom-datasource-example.md` has two H3s
named "Implement the constructor", one under reading and one under
writing. "Implement the datasource constructor" and "Implement the
datasink constructor" would make the right-side TOC clearer. I left them
as they are.

## Verification

- `vale` with Vale 3.12, run from the repo root: 0 alerts on
`comparisons.md`, down from 24, and 0 on `custom-datasource-example.md`,
down from 6. `loading-data.md` has no alerts on the edited line.
- `codespell`: no hits.
- The pre-commit hooks passed on each commit.
- A structural check against each pre-edit file confirmed the code-fence
count, role targets, anchors, and URLs are unchanged.
- For the reworded title, a grep for inbound links found the `{ref}` in
`loading-data.md`, updated here, and a toctree entry in `user-guide.md`,
which doesn't depend on the title. No links use the heading's implicit
slug.
- I didn't run a local Sphinx build. The Read the Docs preview covers
rendering.

## AI assistance

I made these edits with AI assistance (Claude Code) and reviewed the
full diff by hand.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
## Why

Small, self-contained docs fixes found during other docs work, collected
into one PR. Ray's `AGENTS.md` asks for trivial edits to be bundled
instead of opened as one-off PRs, so this batch keeps collecting fixes
and goes up for review about once a week. Each fix is its own commit, so
a reviewer can drop any one without touching the rest.

## What

- **Trailing space inside link text** (`vsphere.md`,
`data/contributing/contributing-guide.md`). Two links' text ended in a
space, such as `[… (WCP) enabled ](…)`, so the rendered underline ran
past the last word. Removed the space. Found while fixing the same
pattern in the Ray Data MyST conversion (ray-project#66375).
- **Duplicated paragraph** (`serve/llm/user-guides/configuration.md`).
The "Set `accelerator_type`" paragraph appeared twice back to back, with
the same content in a different sentence order, apparently a
suggestion-merge artifact from ray-project#65026 that also dropped the blank line
after the heading. Kept the first copy and restored the blank line.
- **Escaped sub-bullets** (`ray-core/internals/autoscaler-v2.md`,
`ray-core/internals/ray-event-exporter.md`). The rST originals nested
these sub-bullets without the blank line rST requires, so they rendered
as run-on text, and the MyST conversion (ray-project#66430) carried them over as
`\-`. Dropped the escapes so they render as the nested lists the author
intended. Both of these fixes turned up during the soft-wrap pass in
ray-project#66607.

## Not a duplicate

There's no open PR touching any of these files, and a GitHub search for
`vsphere.md`, `contributing-guide.md`, "vSphere WCP", `configuration.md`
with `accelerator_type`, `autoscaler-v2`, and `ray-event-exporter` finds
nothing related.

## Testing

- Rendered both pages with `markdown-it-py` (CommonMark). Each link's
text now ends right at `</a>`, with no trailing whitespace.
- A regex scan of every `doc/source/**/*.md` outside code fences for
whitespace before `](` finds these two as the only cases on `master`.
- Rendered `autoscaler-v2.md` and `ray-event-exporter.md` with
`markdown-it-py` and confirmed each sub-bullet group is now a nested
`<ul>` under its parent item.
- Confirmed `configuration.md` has one copy of the paragraph, preceded
by a blank line after the heading.
- Pre-commit hooks passed on every commit.

AI assistance (Claude Code) was used to find and make these fixes. I
reviewed each change.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…m RST to MyST (ray-project#66673)

## Why are these changes needed?

This PR converts the remaining prose pages under `ray-observability/`,
`ray-more-libs/`, `ray-references/`, and `ray-air/` from
reStructuredText to MyST Markdown. It continues the RST-to-MyST
conversion that already landed for `ray-core/` (ray-project#66430), `data/`
(ray-project#66375), and the doctest-wired pages (ray-project#66461). The conversion is format
only: the goal is for each page's rendered HTML to match `/en/master`.

There are five commits:

1. **Conversion.** This commit converts 25 pages, `git rm`s the `.rst`
sources, and adds one `doc/BUILD.bazel` exclude, which commit 5 reverts.
Prose keeps its source line wrapping, so the diff lines up with the
`.rst` line by line.
2. **Soft-wrap.** This commit reflows whitespace only, to one line per
paragraph and list item. `verify.py` from `ray-soft-wrap` confirms that
the non-whitespace bytes and the rendered HTML don't change on all 25
files.
3. **Render fixes.** This commit fixes six regressions that the render
diff against `/en/master` caught, even though the build was green. In
`modin`, two bare-word RST link references (`Modin_`, `documentation_`)
rendered as literal text. In `getting-started`, a bold URL was
autolinked. In `system-metrics`, a URL in a table cell lost its link. In
`dask-on-ray`, `_not_` rendered as italics. In `glossary`, the inline
`.. TODO: RLlib` text, which `/en/master` shows, had become a comment.
The commit also adds compat anchors to five headings with apostrophes
(see below).
4. **Pseudo-lists.** This commit restores three pseudo-lists that the
soft-wrap merged into one line.
5. **Review feedback.** This commit removes the glossary's placeholder
TODO entries, reverts the `doc/BUILD.bazel` change so the PR stays
docs-only, and fixes defects that the review flagged in the `.rst`
sources: a stray definition list in `dask-on-ray`, an unconverted link
in `system-metrics`, an extra parenthesis in `debug-failures`, typos in
`debug-hangs` and `optimize-performance`, a grammar slip in
`ray-debugging`, and em-dash pseudo-list items in `general-debugging`,
which are now a bulleted list.

### Scope

- `ray-air/`: `getting-started` and `deployment`, converted together.
`getting-started` includes `deployment`, and the include now points at
`deployment.md`.
- `ray-observability/`: 14 pages, including `user-guides/debug-apps/`
and `reference/system-metrics`.
- `ray-more-libs/`: 9 pages.
- `ray-references/`: `glossary` and `faq`.

**Left as RST:** `ray-observability/reference/api.rst` (`autosummary`)
and `ray-observability/reference/cli.rst` (`click`). They're API
reference pages, so they stay RST along with the other `*/api/`
reference trees.

### Construct notes for reviewers

- **Glossary.** The glossary is a native MyST `{glossary}` directive,
not RST wrapped in `{eval-rst}`. Sphinx's `glossary` directive parses
each definition with the host parser, so the definitions are Markdown
now. The glossary's placeholder `.. TODO:` entries are removed. Missing
terms can be identified separately.
- **Glossary doctest.** Nothing ran the glossary's `.. doctest::` block
as `.rst`: `pytest-sphinx` doesn't execute `doctest` sections, and
`--doctest-glob='*.md'` doesn't match `.rst`. As `.md`, the stock
doctest parser would start running its five `>>>` prompts, and the
`[[0],[1],...,[3],[4]]` output can't pass without `ELLIPSIS`. Each
prompt now carries `# doctest: +SKIP`, which keeps coverage the same as
master without a `doc/BUILD.bazel` change. Sphinx's default
`trim_doctest_flags` strips the flag from the rendered page, as in
`data/working-with-tensors.md`. If you'd rather fix the expected output
and start testing it, I can do that in a follow-up.
- **FAQ.** `faq.md` includes `_includes/_help-links.md`, the Markdown
copy of `_help.rst` that ray-project#66417 added. `_help.rst` stays, because
`cluster/vms/user-guides/community/yarn.rst` and `tune/key-concepts.rst`
still include it.
- **Comparison table.** The grid table in
`ray-collective-custom-backend` is now a native `{list-table}`.
- **Line blocks.** The line blocks in `dask-on-ray`'s version table are
now Markdown hard line breaks. This is an expected render difference:
`<p>` with `<br>` instead of `div.line-block`.

### Dead links fixed on the way

These links were broken on `/en/master` and fail `fail_on_warning` when
they're transcribed into MyST:

- `joblib` and `multiprocessing` linked to relative `actors.html` and
`installation.html`, which resolve under `ray-more-libs/` and return
404. They now link to `{doc}` `/ray-core/actors` and
`/ray-overview/installation`.
- `ray-collective` linked to `#api-reference`, but the heading's anchor
is `#api-references`.

### Open PRs that edit these pages

Each of these PRs needs to move its change onto the `.md` file: ray-project#66363
(`ray-event-export`), ray-project#65693 and ray-project#65583 (`system-metrics`), and ray-project#64957
(`joblib`, `multiprocessing`). ray-project#65321 edits `reference/cli.rst`, which
this PR doesn't convert.

## Related issue number

None.

## Checks

- [x] I've signed off every commit (`git commit -s`).
- [x] Duplicate check: no open PR converts these pages. I searched open
PRs for MyST, observability, glossary, and more-libs, and for open PRs
that edit these files.
- **Doctest parity:** `doctest_parity.py` (the `pytest-sphinx` parser,
run against `upstream/master`) reports the same sections and examples on
all 25 pages, before and after the soft-wrap: 12 examples before, 12
after.
- **Local doctest:** `pytest --doctest-modules --doctest-glob='*.md' -c
NO_PYTEST_CONFIG -p doctest_pytest_plugin` on the 24 converted pages in
the main target, with Ray nightly `bc900c2` on Python 3.10: 5 passed.
Those are the 5 files with examples. The glossary, now in the target
too, reports 1 skipped: the stock parser finds 5 examples and all 5
carry `+SKIP`.
- **Static checks:** frontmatter parses, fences balance, every label is
preserved, and there's no leftover RST outside fences or directives.
- **RtD preview:** green under `fail_on_warning` on all three commits.
- **Render diff** (`render_diff.py`, preview against `/en/master`,
filtering the two class-only differences every MyST page shows): 11 of
25 pages are identical. Every difference on the other 14 is one of
these:
- RST comments now emit `<!-- ... -->` HTML comments, which readers
don't see. Pages: `ray-air/*`, `ray-more-libs/index`, `ray-collective`,
`getting-started`, `general-debugging`, `glossary`.
- The `dask-on-ray` version table: Markdown hard line breaks (`<p>` with
`<br>`) replace RST line blocks (`div.line-block`).
- The `dask-on-ray` "Why use Dask on Ray?" item keeps its
definition-list structure. MyST adds a `myst` class to the `<dl>`, and
the class has no styling.
- Same-page fragment and `{doc}` links render as `reference internal`
instead of `reference external`. Pages: `ray-collective`, `joblib`,
`multiprocessing`. This list also includes the dead links fixed above.
- Headings with an apostrophe get a new anchor, because MyST drops the
apostrophe where docutils turned it into a hyphen. For example,
`#what-s-the-out-of-memory-error` becomes
`#whats-the-out-of-memory-error`. Five of these headings had no label,
so each gets a compat target with the old slug, which keeps existing
links working. The sixth, in `optimize-performance`, already carries the
`dashboard-cprofile` label.

This PR was written with AI assistance (Claude Code). I reviewed the
changes and ran the checks above.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
dstrodtman added a commit that referenced this pull request Oct 20, 2026
…heir files

Both entries name files that have moved, so each has silently stopped
applying:

- CODEOWNERS names doc/source/data/working-with-llms.rst, which #66375
  converted to working-with-llms.md. ray-project/ray-llm hasn't been
  requested on the page since.
- test.rules.txt routes doc/test_llms_txt.py to `doc` alone, but the test
  moved to doc/source/_ext/ in #65461. There it matches the _ext/ directory
  rule and also emits doc_api, which runs both API-consistency checks for a
  hermetic Sphinx test that imports no Ray code. It now gets its own rule
  ahead of the directory entry, the same way api_sidebar.py does, and the
  test.rules.test.txt case follows it to the new path.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
dstrodtman added a commit that referenced this pull request Oct 21, 2026
…heir files

Both entries name files that have moved, so each has silently stopped
applying:

- CODEOWNERS names doc/source/data/working-with-llms.rst, which #66375
  converted to working-with-llms.md. ray-project/ray-llm hasn't been
  requested on the page since.
- test.rules.txt routes doc/test_llms_txt.py to `doc` alone, but the test
  moved to doc/source/_ext/ in #65461. There it matches the _ext/ directory
  rule and also emits doc_api, which runs both API-consistency checks for a
  hermetic Sphinx test that imports no Ray code. It now gets its own rule
  ahead of the directory entry, the same way api_sidebar.py does, and the
  test.rules.test.txt case follows it to the new path.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data Ray Data-related issues 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.

3 participants