Skip to content

[doc] Soft-wrap prose in Ray Data docs - #66381

Merged
dstrodtman merged 1 commit into
masterfrom
doc-1524-data-prose-softwrap
Sep 23, 2026
Merged

dstrodtman merged 1 commit into
masterfrom
doc-1524-data-prose-softwrap

Conversation

@dstrodtman

Copy link
Copy Markdown
Contributor

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.

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

@dstrodtman
dstrodtman requested review from a team as code owners September 22, 2026 20:31

@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 reformats various documentation files under doc/source/data/ by collapsing multi-line paragraphs and sentences into single lines. The review feedback points out three minor formatting issues in doc/source/data/loading-data.md where extra trailing spaces were left inside markdown link brackets, and provides suggestions to remove them.

Comment thread doc/source/data/loading-data.md Resolved
Comment thread doc/source/data/loading-data.md Resolved
Comment thread doc/source/data/loading-data.md Resolved
@dstrodtman
dstrodtman force-pushed the doc-1524-data-prose-softwrap branch from f00788b to eb049dc Compare September 22, 2026 20:41
@ray-gardener ray-gardener Bot added docs An issue or change related to documentation data Ray Data-related issues labels Sep 23, 2026
@dstrodtman
dstrodtman force-pushed the doc-1524-data-prose-softwrap branch from eb049dc to 7a291e0 Compare September 23, 2026 13:42
@dstrodtman
dstrodtman force-pushed the doc-1524-data-prose-softwrap branch from 7a291e0 to 590c4ba Compare September 23, 2026 17:10
@dstrodtman
dstrodtman force-pushed the doc-1524-data-prose-myst branch from 69ce885 to ee26f18 Compare September 23, 2026 17:14
@dstrodtman
dstrodtman requested review from a team as code owners September 23, 2026 17:14
Base automatically changed from doc-1524-data-prose-myst to master September 23, 2026 18:55
Whitespace-only reflow of the Markdown pages under doc/source/data/
(excluding api/) to one line per paragraph and list item, using the
ray-soft-wrap skill's softwrap.py. No words, code, directives, tables,
or front matter change.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman
dstrodtman force-pushed the doc-1524-data-prose-softwrap branch from 590c4ba to b2240b2 Compare September 23, 2026 19:47
@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Sep 23, 2026
@dstrodtman
dstrodtman enabled auto-merge (squash) September 23, 2026 19:48
@dstrodtman
dstrodtman merged commit 0cbd540 into master Sep 23, 2026
6 of 8 checks passed
@dstrodtman
dstrodtman deleted the doc-1524-data-prose-softwrap branch September 23, 2026 19:56
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
## 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]>
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.

2 participants