Repository navigation
[doc] Convert ray-contribute developer guides from RST to MyST Markdown - #64100
Conversation
## 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]>
There was a problem hiding this comment.
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)? |
| - 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)? |
| 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.) |
|
|
||
| ## 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: |
There was a problem hiding this comment.
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:| ```{eval-rst} | ||
| .. autoclass:: ray.cluster_utils.AutoscalingCluster | ||
| :members: | ||
| ``` |
| ```{eval-rst} | ||
| .. autoclass:: ray.autoscaler._private.fake_multi_node.test_utils.DockerCluster | ||
| :members: | ||
| ``` |
elliot-barn
left a comment
There was a problem hiding this comment.
Can you check these pages in the readthedocs build. Will approve just want to confirm the formatting looks fine
|
just checked a few of them and looks good |
…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]>
…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]>
…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]>
…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]>
…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]>
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.mdandagent-development.mdin the same directory.doc/.claude/CLAUDE.mddeclares MyST Markdown the standard for new docpages and a lint check rejects newly added
.rst, so this continues thein-progress migration of the section to consistent Markdown that's
friendlier for humans and agents to edit.
Pages converted:
indexciapi-policydebuggingfake-autoscalerFaithful format conversion only — no content restructuring. RST
constructs map to their MyST equivalents:
.. meta::/:description:myst.html_meta.description).. _label:(label)=:ref:{ref}.. code-block:: LANG```LANG.. list-table::{list-table}.. literalinclude::{literalinclude}.. autoclass::{eval-rst}All cross-reference labels (
api-policy,backend-logging,fake-multinode,fake-multinode-docker) are preserved exactly, soexisting
{ref}callers keep resolving. Toctree entries areextensionless and unchanged; the parent toctree entry in
index.rstandthe
.htmlredirect targets indoc/redirects/current.yamlareunaffected, 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.pyexample markers), the{eval-rst}autoclasstargets (AutoscalingCluster,DockerCluster),and the
{ref}targets (api-stability,temp-dir-log-files) all exist.No bare
.md→.rstwhole-doc links were introduced. Relying on the Readthe Docs PR preview build for the authoritative Sphinx warning check.