Skip to content

[doc] Convert ray-contribute developer guides from RST to MyST Markdown - #64100

Merged
elliot-barn merged 1 commit into
ray-project:masterfrom
dstrodtman:djs-260615-raycontrib-md-tierA
Jun 16, 2026
Merged

elliot-barn merged 1 commit into
ray-project:masterfrom
dstrodtman:djs-260615-raycontrib-md-tierA

Conversation

@dstrodtman

Copy link
Copy Markdown
Contributor

Description

Convert five contributor-facing Developer Guides pages in
doc/source/ray-contribute/ from reStructuredText to MyST Markdown,
matching the conventions already used by docs.md and
agent-development.md in the same directory.

doc/.claude/CLAUDE.md declares MyST Markdown the standard for new doc
pages and a lint check rejects newly added .rst, so this continues the
in-progress migration of the section to consistent Markdown that's
friendlier for humans and agents to edit.

Pages converted:

  • index
  • ci
  • api-policy
  • debugging
  • fake-autoscaler

Faithful format conversion only — no content restructuring. RST
constructs map to their MyST equivalents:

RST MyST
.. meta:: / :description: YAML frontmatter (myst.html_meta.description)
.. _label: (label)=
:ref: {ref}
.. code-block:: LANG fenced ```LANG
.. list-table:: {list-table}
.. literalinclude:: {literalinclude}
.. autoclass:: wrapped in {eval-rst}

All cross-reference labels (api-policy, backend-logging,
fake-multinode, fake-multinode-docker) are preserved exactly, so
existing {ref} callers keep resolving. Toctree entries are
extensionless and unchanged; the parent toctree entry in index.rst and
the .html redirect targets in doc/redirects/current.yaml are
unaffected, because Sphinx resolves extensionless toctree entries to
whichever source exists and HTML output paths are identical regardless of
source format.

Related issues

None.

Additional information

Verified that every external reference resolves before pushing: the
{literalinclude} targets (src/ray/util/logging.h,
python/ray/tests/test_autoscaler_fake_multinode.py example markers), the
{eval-rst} autoclass targets (AutoscalingCluster, DockerCluster),
and the {ref} targets (api-stability, temp-dir-log-files) all exist.
No bare .md→.rst whole-doc links were introduced. Relying on the Read
the Docs PR preview build for the authoritative Sphinx warning check.

## Why

`doc/.claude/CLAUDE.md` declares MyST Markdown the standard for new doc
pages, and a lint check rejects newly added `.rst`. The `ray-contribute/`
directory is currently mixed: `docs.md` and `agent-development.md` are
already MyST while the rest remain RST. This converts five of the simpler
pages so more of the contributor on-ramp is consistent Markdown that's
friendlier for humans and agents to edit.

## What

Convert these Developer Guides pages from reStructuredText to MyST
Markdown, matching the conventions in the existing `docs.md` /
`agent-development.md`:

- `index`
- `ci`
- `api-policy`
- `debugging`
- `fake-autoscaler`

Faithful format conversion only, no content restructuring. Mappings:
`.. meta::` to YAML frontmatter, `.. _label:` to `(label)=`, `:ref:` to
`{ref}`, `.. code-block::` to fenced code, `.. list-table::` to
`{list-table}`, `.. literalinclude::` to `{literalinclude}`, and
`.. autoclass::` wrapped in `{eval-rst}`.

All cross-reference labels (`api-policy`, `backend-logging`,
`fake-multinode`, `fake-multinode-docker`) are preserved exactly, so
existing `{ref}` callers keep resolving. Toctree entries are extensionless
and unchanged; the parent toctree entry in `index.rst` and the `.html`
redirect targets in `doc/redirects/current.yaml` are unaffected, since
Sphinx resolves extensionless toctree entries to whichever source exists
and HTML output paths are identical regardless of source format.

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
@dstrodtman
dstrodtman requested a review from a team as a code owner June 15, 2026 17:05

@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 converts several developer and contributor documentation files (including API policy, CI testing workflow, debugging, fake autoscaler, and index) from reStructuredText (.rst) to MyST Markdown (.md). The review feedback focuses on improving Markdown formatting and Sphinx integration, such as wrapping code elements (like API annotations, _internal, RayLogLevel::DEBUG, and logging.h) in backticks, using Sphinx's native {class} cross-referencing role instead of hardcoded URLs, and leveraging native MyST syntax for autoclass directives instead of wrapping them in {eval-rst} blocks.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

- Yes
- Yes
- Up to the developers
* - Must a method be annotated with one of the API annotations (PublicAPI, DeveloperAPI or Deprecated)?

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

Wrap the API annotation names in backticks to format them as code and improve readability:

* - Must a method be annotated with one of the API annotations (`PublicAPI`, `DeveloperAPI` or `Deprecated`)?

- Yes
- Yes
- No. The absence of annotations implies the Developer API level by default.
* - Can this API be private (either inside the _internal module or has an underscore prefix)?

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

Wrap _internal in backticks to format it as code and prevent potential Markdown italicization issues caused by the leading underscore:

* - Can this API be private (either inside the `_internal` module or has an underscore prefix)?

logging.cc:270: Set ray log level from environment variable RAY_BACKEND_LOG_LEVEL to -1
```

(-1 is defined as RayLogLevel::DEBUG in logging.h.)

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

Wrap class/constant names and filenames in backticks to format them as code:

(-1 is defined as `RayLogLevel::DEBUG` in `logging.h`.)


## Using `ray.cluster_utils.AutoscalingCluster`

To programmatically create a fake multi-node autoscaling cluster and connect to it, you can use [cluster_utils.AutoscalingCluster](https://github.com/ray-project/ray/blob/master/python/ray/cluster_utils.py). Here's an example of a basic autoscaling test that launches tasks triggering autoscaling:

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

Instead of using a hardcoded GitHub URL, use Sphinx's native cross-referencing role {class} to link directly to the documented class. This ensures the link remains correct across different versions and works offline:

To programmatically create a fake multi-node autoscaling cluster and connect to it, you can use {class}`~ray.cluster_utils.AutoscalingCluster`. Here's an example of a basic autoscaling test that launches tasks triggering autoscaling:

Comment on lines +75 to +78
```{eval-rst}
.. autoclass:: ray.cluster_utils.AutoscalingCluster
:members:
```

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

MyST Markdown natively supports Sphinx directives like autoclass using the standard {directive} syntax. You can use this directly instead of wrapping it in {eval-rst}:

```{autoclass} ray.cluster_utils.AutoscalingCluster
:members:

Comment on lines +149 to +152
```{eval-rst}
.. autoclass:: ray.autoscaler._private.fake_multi_node.test_utils.DockerCluster
:members:
```

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

MyST Markdown natively supports Sphinx directives like autoclass using the standard {directive} syntax. You can use this directly instead of wrapping it in {eval-rst}:

```{autoclass} ray.autoscaler._private.fake_multi_node.test_utils.DockerCluster
:members:

@ray-gardener ray-gardener Bot added docs An issue or change related to documentation core Issues that should be addressed in Ray Core labels Jun 15, 2026

@elliot-barn elliot-barn 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.

Can you check these pages in the readthedocs build. Will approve just want to confirm the formatting looks fine

@elliot-barn

Copy link
Copy Markdown
Collaborator

just checked a few of them and looks good

@elliot-barn
elliot-barn merged commit 2db3fd8 into ray-project:master Jun 16, 2026
4 checks passed
elliot-barn pushed a commit that referenced this pull request Jun 22, 2026
…vement to MyST (#64136)

## Description

Convert the final three contributor-facing **Developer Guides** pages in
`doc/source/ray-contribute/` from reStructuredText to MyST Markdown,
completing the section's migration to MyST (the declared standard for
new pages). These are the hub/entry pages — the most coupled in the
section.

Pages converted:

- `getting-involved` — the contributor hub
- `development` — building Ray from source
- `involvement` — the community-links partial included by
`getting-involved`

**Faithful format conversion only — no content restructuring.** Notable
handling:

- **`development`** — the sphinx-design `.. tab-set::` / `.. tab-item::`
and two `.. dropdown::` blocks become colon-fence directives
(`::::{tab-set}` / `:::{tab-item}` / `:::{dropdown}`) so the nested code
fences compose cleanly. All 8 cross-reference labels are preserved
(`building-ray`, `fork-ray-repo`, `prepare-venv`, `python-develop`,
`python-develop-uninstall`, `build-distributable-wheel`,
`build-ray-image`, `full-source-build`) — referenced internally and from
`getting-involved`.
- **`getting-involved`** — its two `.. testcode::` blocks (the canonical
pydoc examples) become `{testcode}`; the page stays excluded from the
doctest rule, so its `doc/BUILD.bazel` exclude entry is updated `.rst` →
`.md`. The `.. include::` of `involvement` becomes `{include}
involvement.md`, and the shared `_includes/_latest_contribution_doc.rst`
banner stays an include via `{include}` with `:parser: rst`. The
`getting-involved` label is preserved.
- **`involvement`** — a content partial (no frontmatter); its
named-reference links are inlined, which also removes the duplicate `on
GitHub` target it shared with `getting-involved`.

Companion **`.claude/`** updates point at the new `.md` paths (root
`CLAUDE.md`, the `lint` and `rebuild` skills, the python-guidelines
rule). Toctree entries are extensionless and unchanged; `.html` redirect
targets are unaffected.

**One forced rendering change:** the lettered sub-list (a/b/c) under
"Fork the Ray repository" becomes a numbered sub-list (1/2/3), since
MyST/CommonMark has no alpha-enumerated lists.

## Related issues

None.

## Additional information

Verified locally: frontmatter parses; backtick and `:::` colon fences
balance (60/60 and 10/10); all 9 labels present;
`{testcode}`/`{toctree}`/`{include}`/`{tab-set}`/`{tab-item}`/`{dropdown}`
counts are exact; no residual RST outside fences; and the
blockquote-wrapped code, the Windows nested numbered list, and the
python-develop column-0 code-block list all render correctly via
markdown-it. The RtD preview build is the authoritative check for the
sphinx-design directives and cross-references.

Completes the `ray-contribute/` RST→MyST migration (Tier A #64100, Tier
B #64111, Tier C #64115, plus the `rst-to-myst` skill #64135).

**Cross-reference fixes** (flagged by the initial RtD build):
`docs.md`'s link to the renamed `getting-involved` is now extensionless,
and `getting-involved`'s two intra-page section links use MyST `#anchor`
fragments — the original `.html#anchor` form isn't resolved by MyST and
emits `myst.xref_missing`.

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
limarkdcunha pushed a commit to limarkdcunha/ray that referenced this pull request Jun 30, 2026
…wn (ray-project#64100)

## Description

Convert five contributor-facing **Developer Guides** pages in
`doc/source/ray-contribute/` from reStructuredText to MyST Markdown,
matching the conventions already used by `docs.md` and
`agent-development.md` in the same directory.

`doc/.claude/CLAUDE.md` declares MyST Markdown the standard for new doc
pages and a lint check rejects newly added `.rst`, so this continues the
in-progress migration of the section to consistent Markdown that's
friendlier for humans and agents to edit.

Pages converted:

- `index`
- `ci`
- `api-policy`
- `debugging`
- `fake-autoscaler`

**Faithful format conversion only — no content restructuring.** RST
constructs map to their MyST equivalents:

| RST | MyST |
|---|---|
| `.. meta::` / `:description:` | YAML frontmatter
(`myst.html_meta.description`) |
| `.. _label:` | `(label)=` |
| `:ref:` | `{ref}` |
| `.. code-block:: LANG` | fenced ` ```LANG ` |
| `.. list-table::` | `{list-table}` |
| `.. literalinclude::` | `{literalinclude}` |
| `.. autoclass::` | wrapped in `{eval-rst}` |

All cross-reference labels (`api-policy`, `backend-logging`,
`fake-multinode`, `fake-multinode-docker`) are preserved exactly, so
existing `{ref}` callers keep resolving. Toctree entries are
extensionless and unchanged; the parent toctree entry in `index.rst` and
the `.html` redirect targets in `doc/redirects/current.yaml` are
unaffected, because Sphinx resolves extensionless toctree entries to
whichever source exists and HTML output paths are identical regardless
of
source format.

## Related issues

None.

## Additional information

Verified that every external reference resolves before pushing: the
`{literalinclude}` targets (`src/ray/util/logging.h`,
`python/ray/tests/test_autoscaler_fake_multinode.py` example markers),
the
`{eval-rst}` `autoclass` targets (`AutoscalingCluster`,
`DockerCluster`),
and the `{ref}` targets (`api-stability`, `temp-dir-log-files`) all
exist.
No bare `.md`→`.rst` whole-doc links were introduced. Relying on the
Read
the Docs PR preview build for the authoritative Sphinx warning check.

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
limarkdcunha pushed a commit to limarkdcunha/ray that referenced this pull request Jun 30, 2026
…vement to MyST (ray-project#64136)

## Description

Convert the final three contributor-facing **Developer Guides** pages in
`doc/source/ray-contribute/` from reStructuredText to MyST Markdown,
completing the section's migration to MyST (the declared standard for
new pages). These are the hub/entry pages — the most coupled in the
section.

Pages converted:

- `getting-involved` — the contributor hub
- `development` — building Ray from source
- `involvement` — the community-links partial included by
`getting-involved`

**Faithful format conversion only — no content restructuring.** Notable
handling:

- **`development`** — the sphinx-design `.. tab-set::` / `.. tab-item::`
and two `.. dropdown::` blocks become colon-fence directives
(`::::{tab-set}` / `:::{tab-item}` / `:::{dropdown}`) so the nested code
fences compose cleanly. All 8 cross-reference labels are preserved
(`building-ray`, `fork-ray-repo`, `prepare-venv`, `python-develop`,
`python-develop-uninstall`, `build-distributable-wheel`,
`build-ray-image`, `full-source-build`) — referenced internally and from
`getting-involved`.
- **`getting-involved`** — its two `.. testcode::` blocks (the canonical
pydoc examples) become `{testcode}`; the page stays excluded from the
doctest rule, so its `doc/BUILD.bazel` exclude entry is updated `.rst` →
`.md`. The `.. include::` of `involvement` becomes `{include}
involvement.md`, and the shared `_includes/_latest_contribution_doc.rst`
banner stays an include via `{include}` with `:parser: rst`. The
`getting-involved` label is preserved.
- **`involvement`** — a content partial (no frontmatter); its
named-reference links are inlined, which also removes the duplicate `on
GitHub` target it shared with `getting-involved`.

Companion **`.claude/`** updates point at the new `.md` paths (root
`CLAUDE.md`, the `lint` and `rebuild` skills, the python-guidelines
rule). Toctree entries are extensionless and unchanged; `.html` redirect
targets are unaffected.

**One forced rendering change:** the lettered sub-list (a/b/c) under
"Fork the Ray repository" becomes a numbered sub-list (1/2/3), since
MyST/CommonMark has no alpha-enumerated lists.

## Related issues

None.

## Additional information

Verified locally: frontmatter parses; backtick and `:::` colon fences
balance (60/60 and 10/10); all 9 labels present;
`{testcode}`/`{toctree}`/`{include}`/`{tab-set}`/`{tab-item}`/`{dropdown}`
counts are exact; no residual RST outside fences; and the
blockquote-wrapped code, the Windows nested numbered list, and the
python-develop column-0 code-block list all render correctly via
markdown-it. The RtD preview build is the authoritative check for the
sphinx-design directives and cross-references.

Completes the `ray-contribute/` RST→MyST migration (Tier A ray-project#64100, Tier
B ray-project#64111, Tier C ray-project#64115, plus the `rst-to-myst` skill ray-project#64135).

**Cross-reference fixes** (flagged by the initial RtD build):
`docs.md`'s link to the renamed `getting-involved` is now extensionless,
and `getting-involved`'s two intra-page section links use MyST `#anchor`
fragments — the original `.html#anchor` form isn't resolved by MyST and
emits `myst.xref_missing`.

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
…wn (ray-project#64100)

## Description

Convert five contributor-facing **Developer Guides** pages in
`doc/source/ray-contribute/` from reStructuredText to MyST Markdown,
matching the conventions already used by `docs.md` and
`agent-development.md` in the same directory.

`doc/.claude/CLAUDE.md` declares MyST Markdown the standard for new doc
pages and a lint check rejects newly added `.rst`, so this continues the
in-progress migration of the section to consistent Markdown that's
friendlier for humans and agents to edit.

Pages converted:

- `index`
- `ci`
- `api-policy`
- `debugging`
- `fake-autoscaler`

**Faithful format conversion only — no content restructuring.** RST
constructs map to their MyST equivalents:

| RST | MyST |
|---|---|
| `.. meta::` / `:description:` | YAML frontmatter
(`myst.html_meta.description`) |
| `.. _label:` | `(label)=` |
| `:ref:` | `{ref}` |
| `.. code-block:: LANG` | fenced ` ```LANG ` |
| `.. list-table::` | `{list-table}` |
| `.. literalinclude::` | `{literalinclude}` |
| `.. autoclass::` | wrapped in `{eval-rst}` |

All cross-reference labels (`api-policy`, `backend-logging`,
`fake-multinode`, `fake-multinode-docker`) are preserved exactly, so
existing `{ref}` callers keep resolving. Toctree entries are
extensionless and unchanged; the parent toctree entry in `index.rst` and
the `.html` redirect targets in `doc/redirects/current.yaml` are
unaffected, because Sphinx resolves extensionless toctree entries to
whichever source exists and HTML output paths are identical regardless
of
source format.

## Related issues

None.

## Additional information

Verified that every external reference resolves before pushing: the
`{literalinclude}` targets (`src/ray/util/logging.h`,
`python/ray/tests/test_autoscaler_fake_multinode.py` example markers),
the
`{eval-rst}` `autoclass` targets (`AutoscalingCluster`,
`DockerCluster`),
and the `{ref}` targets (`api-stability`, `temp-dir-log-files`) all
exist.
No bare `.md`→`.rst` whole-doc links were introduced. Relying on the
Read
the Docs PR preview build for the authoritative Sphinx warning check.

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: 400Ping <[email protected]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
…vement to MyST (ray-project#64136)

## Description

Convert the final three contributor-facing **Developer Guides** pages in
`doc/source/ray-contribute/` from reStructuredText to MyST Markdown,
completing the section's migration to MyST (the declared standard for
new pages). These are the hub/entry pages — the most coupled in the
section.

Pages converted:

- `getting-involved` — the contributor hub
- `development` — building Ray from source
- `involvement` — the community-links partial included by
`getting-involved`

**Faithful format conversion only — no content restructuring.** Notable
handling:

- **`development`** — the sphinx-design `.. tab-set::` / `.. tab-item::`
and two `.. dropdown::` blocks become colon-fence directives
(`::::{tab-set}` / `:::{tab-item}` / `:::{dropdown}`) so the nested code
fences compose cleanly. All 8 cross-reference labels are preserved
(`building-ray`, `fork-ray-repo`, `prepare-venv`, `python-develop`,
`python-develop-uninstall`, `build-distributable-wheel`,
`build-ray-image`, `full-source-build`) — referenced internally and from
`getting-involved`.
- **`getting-involved`** — its two `.. testcode::` blocks (the canonical
pydoc examples) become `{testcode}`; the page stays excluded from the
doctest rule, so its `doc/BUILD.bazel` exclude entry is updated `.rst` →
`.md`. The `.. include::` of `involvement` becomes `{include}
involvement.md`, and the shared `_includes/_latest_contribution_doc.rst`
banner stays an include via `{include}` with `:parser: rst`. The
`getting-involved` label is preserved.
- **`involvement`** — a content partial (no frontmatter); its
named-reference links are inlined, which also removes the duplicate `on
GitHub` target it shared with `getting-involved`.

Companion **`.claude/`** updates point at the new `.md` paths (root
`CLAUDE.md`, the `lint` and `rebuild` skills, the python-guidelines
rule). Toctree entries are extensionless and unchanged; `.html` redirect
targets are unaffected.

**One forced rendering change:** the lettered sub-list (a/b/c) under
"Fork the Ray repository" becomes a numbered sub-list (1/2/3), since
MyST/CommonMark has no alpha-enumerated lists.

## Related issues

None.

## Additional information

Verified locally: frontmatter parses; backtick and `:::` colon fences
balance (60/60 and 10/10); all 9 labels present;
`{testcode}`/`{toctree}`/`{include}`/`{tab-set}`/`{tab-item}`/`{dropdown}`
counts are exact; no residual RST outside fences; and the
blockquote-wrapped code, the Windows nested numbered list, and the
python-develop column-0 code-block list all render correctly via
markdown-it. The RtD preview build is the authoritative check for the
sphinx-design directives and cross-references.

Completes the `ray-contribute/` RST→MyST migration (Tier A ray-project#64100, Tier
B ray-project#64111, Tier C ray-project#64115, plus the `rst-to-myst` skill ray-project#64135).

**Cross-reference fixes** (flagged by the initial RtD build):
`docs.md`'s link to the renamed `getting-involved` is now extensionless,
and `getting-involved`'s two intra-page section links use MyST `#anchor`
fragments — the original `.html#anchor` form isn't resolved by MyST and
emits `myst.xref_missing`.

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

Labels

core Issues that should be addressed in Ray Core docs An issue or change related to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants