Repository navigation
[docs] Rename Ray Data landing to index.md and clean up filename slugs - #66352
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates documentation references from data/data to data/index across several files and adds a corresponding redirect in doc/redirects/current.yaml. The feedback suggests using the label data directly with button-ref in doc/source/ray-overview/getting-started.md instead of the relative path ../data/index to avoid relative path traversal and make the reference more robust against future file renames.
Align the Ray Data landing page with the majority landing convention
(tune/, rllib/, and serve/ all use index.md). Pure path change:
- Rename doc/source/data/data.md to doc/source/data/index.md.
- Update inbound path references (top-level toctree, ray-overview
getting-started button-ref and index doc/link refs, train results
doc-ref) from data/data to data/index.
- Add a page redirect from /data/data.html to /data/index.html.
The (data)= label at the top of the file is filename-independent, so
{ref} targets are unaffected. No content changes to the renamed file.
Signed-off-by: Douglas Strodtman <[email protected]>
Two pure-path slug fixes under doc/source/data/, no content edits: - Rename batch_inference.rst to batch-inference.rst (the only underscore slug in the tree). Update the user-guide toctree entry and both literal paths in doc/BUILD.bazel (the doctest_each GPU exclude and the doctest[data-gpu] files list), which don't glob. - Rename data-internals.rst to internals.rst (drop the redundant data- prefix inside data/). Update the index toctree entry. Add page redirects for both old URLs. All :ref: labels defined in these files are filename-independent and unchanged. Signed-off-by: Douglas Strodtman <[email protected]>
bveeramani
approved these changes
Sep 22, 2026
dstrodtman
force-pushed
the
doc-1693-data-landing-index
branch
from
September 22, 2026 18:51
6aa8037 to
9330acb
Compare
dstrodtman
enabled auto-merge (squash)
September 22, 2026 18:53
This was referenced Sep 22, 2026
Merged
matthewdeng
approved these changes
Sep 23, 2026
dstrodtman
added a commit
that referenced
this pull request
Sep 23, 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 #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]>
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]>
nadongjun
pushed a commit
to nadongjun/ray
that referenced
this pull request
Oct 6, 2026
ray-project#66352) ## Why Layer 1 of the Ray Data IA cleanup: align filenames with the rest of the docs tree as a pure path change plus redirects, no content edits. Sequenced before the MyST conversion and the grammar pass so file history survives each step. ## What Three slug fixes under `doc/source/data/`: 1. **`data.md` → `index.md`.** The Ray Data landing was the only major library landing (besides Train) not named `index.md`; `tune/`, `rllib/`, and `serve/` all use it. Updates the top-level toctree, the ray-overview getting-started button-ref, the ray-overview `{doc}` ref and Markdown link, and the train results `:doc:` ref (`data/data` → `data/index`). 2. **`batch_inference.rst` → `batch-inference.rst`.** The only underscore slug in the tree. Updates the user-guide toctree entry and both literal paths in `doc/BUILD.bazel` — the `doctest_each` GPU-exclude and the `doctest[data-gpu]` files list — which don't glob. Kept as `.rst`; the MyST conversion is a later layer. 3. **`data-internals.rst` → `internals.rst`.** Drops the redundant `data-` prefix inside `data/`. Updates the index toctree entry. Adds a `page` redirect for each old URL in `doc/redirects/current.yaml`. ## Not changed - All `:ref:`/`{ref}` targets (e.g. `batch_inference_home`, `streaming_execution`) resolve to `.. _label:` definitions, which are filename-independent. Left untouched. - The `docs.ray.io/.../data/data.html` link in a source-tree JAX example README, the `batch_inference.png` image, the `train_batch_inference_benchmark.py` script, and the `templates/01_batch_inference/` directory are unrelated names or source-tree links covered by the redirects. - No content changes to any renamed file. ## Verification - `git show --find-renames` confirms all three are pure renames (zero content delta). - Cross-reference grep sweeps are clean; the only remaining old-stem hits are `.. _label:` defs/refs and unrelated names. - `rtd-redirects validate doc/redirects/current.yaml` → 0 errors; the new rules point straight at final pages and add no chain warnings. - Pre-commit passes, including `buildifier` on `doc/BUILD.bazel`. - Relying on the RtD preview build (`fail_on_warning: true`) as the final dangling-reference gate. The `batch-inference` doctest runs on GPU in CI (`doctest[data-gpu]`); its content is unchanged. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[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]>
dstrodtman
added a commit
that referenced
this pull request
Oct 14, 2026
…page slugs (#67015) ## Description This is the path-only first step of tidying the Ray Tune docs layout, matching the earlier Ray Data, Ray Core, and Ray Train renames (#66352, #66883). It changes paths only, with no content edits. The tutorials hub becomes `index`, the PBT visualization subtree gets its own landing, and underscore slugs become hyphens. Paths below are relative to `doc/source/tune/`: - `tutorials/overview.md` → `tutorials/index.md` - `tutorials/tune_get_data_in_and_out.md` → `tutorials/tune-get-data-in-and-out.md` - `examples/pbt_visualization/` → `examples/pbt-visualization/`, with `pbt_visualization.ipynb` → `index.ipynb` and `pbt_visualization_utils.md` → `pbt-visualization-utils.md` - 13 example notebooks under `examples/`, such as `pbt_guide.ipynb` → `pbt-guide.ipynb` and `tune_analyze_results.ipynb` → `tune-analyze-results.ipynb` - 24 example script pages under `examples/includes/`, such as `tune_basic_example.md` → `tune-basic-example.md` Out of scope: `api/` pages, and absolute `docs.ray.io` URLs in templates and source-tree files, which the redirects keep working. ### What else moves with the files - **Inbound references:** toctrees (including one inside a `pbt-guide.ipynb` Markdown cell), `{doc}`/`:doc:` roles, and relative Markdown links across the Tune pages, `ray-contribute/docs.md`, and the deprecated Train HPO guide. - **Docstrings (please check, @ray-project/ray-tune):** three `:doc:` refs that autodoc renders, in `python/ray/tune/result_grid.py` and `python/ray/tune/schedulers/resource_changing_scheduler.py`. Without them the docs build fails under `-W`. - **`conf.py`:** the llms exclusion for the PBT visualization helper page. - **Bazel:** the notebook `exclude` list in `doc/source/tune/examples/BUILD.bazel` (`pbt-ppo-example`, `pbt-transformers`, `bohb-example`). Missing these would start testing notebooks CI can't run. Target names are unchanged. - **The PBT helper module keeps its name.** `pbt_visualization_utils.py` stays, because the notebook imports it as a sibling module. Only the rendered page and the directory are renamed. ### Redirects `doc/redirects/current.yaml` gets 41 version-less `page` rules, one per renamed URL. They sit ahead of the `/tune/examples/*` catch-all. Existing rules that point at old paths stay as they are, because older releases still serve those paths. - `rtd-redirects validate`: 0 errors, 0 warnings. Chain notes went from 203 to 246, from the expected two-hop paths. - `rtd-redirects simulate --prefix /tune/` against master (local build), latest, releases-2.50.0, and releases-2.40.0: **0 regressions, 0 wrong landings, 0 new loops on every version.** - master hop histogram: `{0: 612, 1: 322, 2: 81, 3: 7, 4: 1}`. No `/tune/` URL needs 2+ hops. - Each of the 41 old URLs reaches its new page on master in one hop. ### Rename detection All 46 files show as git renames. The few with a nonzero delta (at most 6 lines) are pages whose own references to other renamed pages were updated. ## Related issues None. ## Additional information **Verification** - `make -C doc rtd-build` (RtD-faithful, `-W`): `build succeeded.`, zero Sphinx warnings. - No remaining doc-source references to the old paths. What's left: absolute URLs (covered by redirects), Python module and source-file names, in-page anchor IDs, and a CI unit-test fixture that uses `ax_example` as sample data. - Pre-commit passed. **AI assistance.** This change was prepared with Claude Code. I reviewed the diff 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Layer 1 of the Ray Data IA cleanup: align filenames with the rest of the docs tree as a pure path change plus redirects, no content edits. Sequenced before the MyST conversion and the grammar pass so file history survives each step.
What
Three slug fixes under
doc/source/data/:data.md→index.md. The Ray Data landing was the only major library landing (besides Train) not namedindex.md;tune/,rllib/, andserve/all use it. Updates the top-level toctree, the ray-overview getting-started button-ref, the ray-overview{doc}ref and Markdown link, and the train results:doc:ref (data/data→data/index).batch_inference.rst→batch-inference.rst. The only underscore slug in the tree. Updates the user-guide toctree entry and both literal paths indoc/BUILD.bazel— thedoctest_eachGPU-exclude and thedoctest[data-gpu]files list — which don't glob. Kept as.rst; the MyST conversion is a later layer.data-internals.rst→internals.rst. Drops the redundantdata-prefix insidedata/. Updates the index toctree entry.Adds a
pageredirect for each old URL indoc/redirects/current.yaml.Not changed
:ref:/{ref}targets (e.g.batch_inference_home,streaming_execution) resolve to.. _label:definitions, which are filename-independent. Left untouched.docs.ray.io/.../data/data.htmllink in a source-tree JAX example README, thebatch_inference.pngimage, thetrain_batch_inference_benchmark.pyscript, and thetemplates/01_batch_inference/directory are unrelated names or source-tree links covered by the redirects.Verification
git show --find-renamesconfirms all three are pure renames (zero content delta)... _label:defs/refs and unrelated names.rtd-redirects validate doc/redirects/current.yaml→ 0 errors; the new rules point straight at final pages and add no chain warnings.buildifierondoc/BUILD.bazel.fail_on_warning: true) as the final dangling-reference gate. Thebatch-inferencedoctest runs on GPU in CI (doctest[data-gpu]); its content is unchanged.🤖 Generated with Claude Code