Skip to content

[doc] Convert the community cluster manager pages to MyST - #66678

Merged
dstrodtman merged 4 commits into
masterfrom
doc-1526-cluster-myst-community
Oct 5, 2026
Merged

dstrodtman merged 4 commits into
masterfrom
doc-1526-cluster-myst-community

Conversation

@dstrodtman

@dstrodtman dstrodtman commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Converts the seven doc/source/cluster/vms/user-guides/community/ pages (index, YARN, Slurm and its three script stubs, LSF, Spark) from reStructuredText to MyST Markdown, as part of the ongoing RST-to-MyST migration of doc/source/. This is a format-only change, apart from the one rendering fix noted below. The rendered pages should otherwise match /en/master.

The PR has four commits:

  1. The conversion, which keeps the source line wrapping so it reads line by line against the .rst.
  2. A whitespace-only soft-wrap pass, verified by ray-soft-wrap's verify.py (content, render, and idempotence checks all pass).
  3. Quoting the literalinclude markers that start with #.
  4. A review fix that joins index's last sentence back into one paragraph.

Conversion notes

  • RST named hyperlink targets (`YASPI`_ plus a .. _YASPI: url definition) are inlined as Markdown links in lsf, slurm, and yarn.
  • yarn's link to its own Questions or Issues? section becomes a #questions-or-issues fragment, which is the same anchor as before.
  • yarn included /_includes/_help.rst. It now includes the existing Markdown copy, /_includes/_help-links.md, as memory-management.md, ray-oom-prevention.md, and tune/key-concepts.md already do.
  • Rendering fix. index's last sentence renders as a definition list on /en/master, because its second line is indented by accident. It's joined into one paragraph here.
  • spark's 1) lines are followed by an unindented line, so docutils renders them as paragraph text, not list items. They're escaped (1\)) to keep that rendering.
  • The literalinclude markers in yarn that start with # (# Head service) are quoted. MyST parses directive options as YAML, so an unquoted value reads as a comment.
  • The Spark API section's autofunction directives are wrapped in {eval-rst}.

Every label is preserved. Every external reference to these pages is an extensionless {doc} path or a label, so no caller needed an edit. None of the pages has doctest blocks, and doc/BUILD.bazel doesn't name them.

Duplicate check

No open PR edits any of these files. I checked every open PR's file list.

Testing

  • Static checks on each new .md: frontmatter parses, fences balance, no residual RST outside fences, no .html# or .rst link targets, every label present.
  • python3 doc/.claude/skills/ray-soft-wrap/scripts/verify.py on all 8 files: passed.
  • RtD preview build: green under fail_on_warning before the review fix. The rebuild for the latest commit is pending.
  • render_diff.py against /en/master, run before the review fix: 7 of 8 pages render identically. On community/index, the definition list's <dl> gained MyST's unstyled myst class. The review fix then replaced that definition list with a paragraph, which is the one intended difference on that page.

AI assistance (Claude Code) was used for this conversion. I review every changed line before requesting review.

🤖 Generated with Claude Code

dstrodtman and others added 2 commits October 2, 2026 15:32
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
Whitespace only, verified by ray-soft-wrap's verify.py.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman dstrodtman added the docs An issue or change related to documentation label Oct 2, 2026
MyST parses directive options as YAML, so an unquoted '# Head service'
value reads as a comment and the option ends up empty.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Oct 5, 2026
@dstrodtman
dstrodtman marked this pull request as ready for review October 5, 2026 16:03
@dstrodtman
dstrodtman requested review from a team as code owners October 5, 2026 16:03

@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 community-supported cluster manager documentation from reStructuredText (.rst) to MyST Markdown (.md). The review feedback addresses minor formatting and rendering inconsistencies resulting from the migration, such as a broken sentence structure in index.md and non-standard list syntax in spark.md. It is recommended to apply the suggested standard Markdown list formatting and fix the sentence splitting to ensure clean rendering.

Addresses gemini-code-assist review comments.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman
dstrodtman merged commit 04fe756 into master Oct 5, 2026
6 checks passed
@dstrodtman
dstrodtman deleted the doc-1526-cluster-myst-community branch October 5, 2026 19:06
dstrodtman added a commit that referenced this pull request Oct 5, 2026
## Why are these changes needed?

The docs build on master is failing, and so is every docs PR preview,
with a single warning (example: [master build
4526885](https://app.readthedocs.com/projects/anyscale-ray/builds/4526885/)):

```
doc/source/_includes/_help.rst: WARNING: document isn't included in any toctree [toc.not_included]
```

#66678 converted the YARN page to MyST and switched its include from
`/_includes/_help.rst` to the existing Markdown copy,
`/_includes/_help-links.md`. YARN was the last page that included
`_help.rst`, so the file is now orphaned. `fail_on_warning: true` in
`.readthedocs.yaml` turns the warning into a build failure.

`_help-links.md` carries the same four help links with the same text,
and every page that showed them now includes it. This PR deletes the
orphaned RST copy.

## Verification

- `grep -rn "_help.rst" doc/ ci/ .buildkite/ .readthedocs.yaml` returns
no references.
- This PR's own Read the Docs preview build confirms the warning is
gone.

🤖 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
…t#66678)

## Summary

Converts the seven `doc/source/cluster/vms/user-guides/community/` pages
(index, YARN, Slurm and its three script stubs, LSF, Spark) from
reStructuredText to MyST Markdown, as part of the ongoing RST-to-MyST
migration of `doc/source/`. This is a format-only change, apart from the
one rendering fix noted below. The rendered pages should otherwise match
`/en/master`.

The PR has four commits:

1. The conversion, which keeps the source line wrapping so it reads line
by line against the `.rst`.
2. A whitespace-only soft-wrap pass, verified by `ray-soft-wrap`'s
`verify.py` (content, render, and idempotence checks all pass).
3. Quoting the `literalinclude` markers that start with `#`.
4. A review fix that joins `index`'s last sentence back into one
paragraph.

## Conversion notes

- RST named hyperlink targets (`` `YASPI`_ `` plus a `.. _YASPI: url`
definition) are inlined as Markdown links in `lsf`, `slurm`, and `yarn`.
- `yarn`'s link to its own `Questions or Issues?` section becomes a
`#questions-or-issues` fragment, which is the same anchor as before.
- `yarn` included `/_includes/_help.rst`. It now includes the existing
Markdown copy, `/_includes/_help-links.md`, as `memory-management.md`,
`ray-oom-prevention.md`, and `tune/key-concepts.md` already do.
- **Rendering fix.** `index`'s last sentence renders as a definition
list on `/en/master`, because its second line is indented by accident.
It's joined into one paragraph here.
- `spark`'s `1)` lines are followed by an unindented line, so docutils
renders them as paragraph text, not list items. They're escaped (`1\)`)
to keep that rendering.
- The `literalinclude` markers in `yarn` that start with `#` (`# Head
service`) are quoted. MyST parses directive options as YAML, so an
unquoted value reads as a comment.
- The Spark API section's `autofunction` directives are wrapped in
`{eval-rst}`.

Every label is preserved. Every external reference to these pages is an
extensionless `{doc}` path or a label, so no caller needed an edit. None
of the pages has doctest blocks, and `doc/BUILD.bazel` doesn't name
them.

## Duplicate check

No open PR edits any of these files. I checked every open PR's file
list.

## Testing

- Static checks on each new `.md`: frontmatter parses, fences balance,
no residual RST outside fences, no `.html#` or `.rst` link targets,
every label present.
- `python3 doc/.claude/skills/ray-soft-wrap/scripts/verify.py` on all 8
files: passed.
- RtD preview build: green under `fail_on_warning` before the review
fix. The rebuild for the latest commit is pending.
- `render_diff.py` against `/en/master`, run before the review fix: 7 of
8 pages render identically. On `community/index`, the definition list's
`<dl>` gained MyST's unstyled `myst` class. The review fix then replaced
that definition list with a paragraph, which is the one intended
difference on that page.

AI assistance (Claude Code) was used for this conversion. I review every
changed line before requesting review.

🤖 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 are these changes needed?

The docs build on master is failing, and so is every docs PR preview,
with a single warning (example: [master build
4526885](https://app.readthedocs.com/projects/anyscale-ray/builds/4526885/)):

```
doc/source/_includes/_help.rst: WARNING: document isn't included in any toctree [toc.not_included]
```

ray-project#66678 converted the YARN page to MyST and switched its include from
`/_includes/_help.rst` to the existing Markdown copy,
`/_includes/_help-links.md`. YARN was the last page that included
`_help.rst`, so the file is now orphaned. `fail_on_warning: true` in
`.readthedocs.yaml` turns the warning into a build failure.

`_help-links.md` carries the same four help links with the same text,
and every page that showed them now includes it. This PR deletes the
orphaned RST copy.

## Verification

- `grep -rn "_help.rst" doc/ ci/ .buildkite/ .readthedocs.yaml` returns
no references.
- This PR's own Read the Docs preview build confirms the warning is
gone.

🤖 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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