Skip to content

[ci][doc] Convert the root README and other READMEs from RST to Markdown - #66811

Merged
dstrodtman merged 7 commits into
masterfrom
djs-261007-root-readme-md
Nov 2, 2026
Merged

dstrodtman merged 7 commits into
masterfrom
djs-261007-root-readme-md

Conversation

@dstrodtman

@dstrodtman dstrodtman commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Description

Converts the repo-root README.rst to Markdown. It also converts the remaining .rst READMEs and design notes outside doc/, which moved here from #66664 so that PR doesn't wait on library code-owner approvals. Unlike those files, README.rst is a packaging input.

Root README

  • README.rst becomes README.md. Images and badges become linked Markdown images, named hyperlink targets are inlined, and the "Getting Involved" list-table becomes a pipe table. The unused Workflow target, which nothing referenced, is dropped.
  • python/setup.py reads README.md and sets long_description_content_type="text/markdown", so PyPI renders it as Markdown.
  • lint: doc_readme (ci/lint/lint.sh) drops --restructuredtext and its docutils install, and keeps setup.py check --strict --metadata. --restructuredtext parses the long description as RST whatever its content type, so it fails on the Markdown file. PyPI doesn't reject a Markdown long description the way it rejects invalid RST, so the remaining check covers the metadata. The step's tag and trigger are unchanged.
  • ci/docker/ray-wheel.Dockerfile, ci/docker/ray-cpp-wheel.Dockerfile, and the srcs of the three wanda configs that listed README.rst (min.build, ray-wheel, ray-cpp-wheel) now name README.md.
  • .buildkite/always.rules.txt and always.rules.test.txt move the pypi_readme trigger from README.rst to README.md. The comments in those files and in lint.rayci.yml now describe the metadata-only check.

READMEs and design notes outside doc/

These moved here from #66664. They cover python/ray/autoscaler/, python/ray/dashboard/client/, python/ray/rllib/core/models/, python/ray/tune/, python/ray/tune/examples/, release/long_running_tests/, and src/ray/design_docs/ (actor_states, task_states). Two commits: a pure git mv so history follows each file, then the markup conversion. The rename commit also updates the two .buildkite/test.rules.test.txt expectations that name tune/README and task_states. Both paths still hit the repo-wide prose skip, which matches *.md as well as *.rst. Two of the files needed no markup change: autoscaler/README was already Markdown inside an .rst, and rllib/core/models/README is plain text. A follow-up commit fixes typos and formatting carried over from the .rst sources, and points the custom_func_checkpointing link in the Tune examples README at custom_func_checkpointing.py instead of logging_example.py.

Not a duplicate

No open PR converts README.rst. Searches for README.rst, README.md, long_description, and readme markdown return no overlapping work. An earlier version of this PR also converted CONTRIBUTING.rst. That conversion now lives in #67116, which also updates the file's content, so this PR leaves CONTRIBUTING.rst alone. Among the 400 most recent open PRs, #59038 (adds a badge, last updated 2025-12-18) edits README.rst and would need to move its change to README.md. Several open PRs touch python/setup.py, but on unrelated lines. For the READMEs and design notes, no open PR touches any of the changed paths.

Testing

  • Rendered README.rst with docutils and README.md with a CommonMark parser, then compared the visible text, link targets, and image sources. All three match.
  • In a Python 3.11 venv, from python/:
    • python setup.py check --strict --metadata (the new lint command) exits 0.
    • python setup.py check --restructuredtext --strict --metadata (the old command) exits 1 on the Markdown README with Line block ends without a blank line. That confirms the lint step had to change.
  • Ran rayci test-rules (built from ray-project/rayci at ef6403a) on this branch and it passed. As a negative control, removing pypi_readme from the README.md expectation made it fail.
  • READMEs and design notes: rendered each .rst with docutils and each .md with a CommonMark parser, then compared the visible text and link targets. They match, with two exceptions. The TensorFlow URL in tune/examples/README is a bare URL, which GitHub autolinks. long_running_tests/README's "Anyscale UI" link had malformed RST markup with no trailing underscore, so it rendered the raw URL. It's now a working link.
  • pre-commit passed on every commit.
  • Not run locally: the wheel image builds that copy README.md. Premerge builds them.

This PR was prepared with AI assistance (Claude Code). I reviewed every changed line.

🤖 Generated with Claude Code

@dstrodtman
dstrodtman marked this pull request as ready for review October 7, 2026 15:41
@dstrodtman
dstrodtman requested review from a team, edoakes and richardliaw as code owners October 7, 2026 15:41
@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Oct 7, 2026

@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 repository's root documentation files, specifically README.rst and CONTRIBUTING.rst, to Markdown format (README.md and CONTRIBUTING.md). It updates all corresponding references across build configurations, CI rules, Dockerfiles, and python/setup.py, where the long description content type is updated to Markdown. Reviewer feedback highlights a typo in CONTRIBUTING.md regarding PRs engaging with contributors, and suggests updating HTTP links to HTTPS in README.md for better security and consistency.

Comment thread CONTRIBUTING.md Resolved
Comment thread README.md Resolved
Comment thread README.md Resolved
@ray-gardener ray-gardener Bot added docs An issue or change related to documentation core Issues that should be addressed in Ray Core labels Oct 7, 2026
dstrodtman and others added 6 commits October 14, 2026 11:18
PyPI renders a Markdown long description natively, so setup.py now reads
README.md and declares long_description_content_type="text/markdown".
lint: doc_readme drops --restructuredtext, which validates the long
description as RST and would reject the Markdown file, and keeps
--strict --metadata. The wheel Dockerfiles, wanda srcs, and the CI rule
that triggers the lint step follow the rename.

Signed-off-by: Douglas Strodtman <[email protected]>
Markup-only conversion. Repoints the link in AGENTS.md and the mention in
the ray-soft-wrap skill, and updates the test.rules expectations that
name the root README and CONTRIBUTING files.

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Douglas Strodtman <[email protected]>
… only)

Pure git mv of the package READMEs, release-test README, and design notes
outside doc/source/, so history follows the files. The next commit
converts their markup. Updates the two test.rules.test.txt expectations
that name these files; both still hit the repo-wide prose skip.

Signed-off-by: Douglas Strodtman <[email protected]>
Markup-only conversion of the files renamed in the previous commit:
headings, links, literals, code blocks, and comments. Rendered text and
link targets match the RST, except the long-running-tests README's
'Anyscale UI' link, whose RST markup was malformed (no trailing
underscore) and rendered the raw URL. It's now a working link.

Signed-off-by: Douglas Strodtman <[email protected]>
Add code formatting in the dashboard client and long-running tests
READMEs, fix the long-running tests sentence, and point the
custom_func_checkpointing link in the Tune examples README at
custom_func_checkpointing.py instead of logging_example.py.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman
dstrodtman force-pushed the djs-261007-root-readme-md branch from 9ae6740 to 53ec120 Compare October 14, 2026 15:18
@dstrodtman
dstrodtman requested review from a team as code owners October 14, 2026 15:18
dstrodtman added a commit that referenced this pull request Oct 14, 2026
## Description

A rolling batch of small, independent docs fixes. Ray's `AGENTS.md` asks
that trivial edits be bundled rather than opened as one-off PRs, so they
collect here. Each item is its own commit or commit pair, so a reviewer
can drop any one without touching the rest.

### Items

1. **RLlib dev install: use `setup-dev.py --allow` instead of
prompt-order instructions** (`doc/source/rllib/dev.md`). The example
said to answer `Y` only at "the first question on linking RLlib."
`setup-dev.py` now prompts for `llm`, `serve/llm`, and `data/llm.py`
before `rllib`, so following the comment as written links `llm` and
declines RLlib. The example now uses `--allow rllib`, with `--allow
rllib tune train` as the opt-in for Tune and Train, which doesn't depend
on prompt order. Found while checking that READMEs and contributor docs
no longer reference the pre-#66096 `rllib/` symlink layout. No such
references remain.
2. **Convert the KubeRay GPU guide to MyST**
(`doc/source/kuberay/user-guides/gpu.rst` to `.md`). It's the last prose
`.rst` page under `doc/source/` outside the API-reference trees. It was
held back from the cluster conversion until #66674 moved it to
`kuberay/`. Two commits: a faithful conversion, then a whitespace-only
soft-wrap verified by `ray-soft-wrap`'s `verify.py`. Both labels
(`kuberay-gpu`, `kuberay-gpu-override`) are preserved, the named
hyperlink targets are inlined, and the heading levels match the live
page (H1 to H4).
3. **Fix the raw RST at the top of the contributor guide**
(`doc/source/ray-contribute/getting-involved.md`). The page includes
`_includes/_latest_contribution_doc.rst` with `{include}` and `:parser:
rst`, which MyST doesn't parse as RST. Since the page converted to
Markdown, docs.ray.io has shown the literal text "… admonition:: Check
your version!" at the top of the page. The page was the partial's only
consumer, so the admonition is now inline as `:::{admonition}` and the
partial is deleted.
4. **Replace an unreachable vSphere link in the VM getting-started
guide** (`doc/source/cluster/vms/getting-started.md`). The vSphere tab
linked to `github-vcf.devops.broadcom.net/vcf/vmray`, an internal
Broadcom host that isn't reachable from the public internet, so the
nightly link check flags it as broken on `master`. The link now points
to the supervisor service section of the in-tree vSphere launch guide,
which covers the same setup step.

## Not a duplicate

- Item 1: no open PR touches `doc/source/rllib/dev.md`, and searches for
`setup-dev rllib`, `rllib dev.md`, and the page title return no open
PRs.
- Items 2 and 3: no open PR touches any of the changed paths. I checked
the file lists of the 400 most recent open PRs, and searched for `MyST`,
`gpu.rst`, and `getting-involved`.
- Item 4: of the 400 most recent open PRs, only #66289 also touches
`doc/source/cluster/vms/getting-started.md`. It adds an OCI tab next to
the vSphere tab and leaves the vSphere link unchanged.

The README and design-note conversions outside `doc/` that were item 4
moved to #66811. Those paths pull in library code-owner approvals, which
this PR shouldn't wait on.

## Testing

- Item 1: installed the `ray==2.59.0` wheel into a clean Python 3.11
venv, then ran both documented commands from this branch:
- `python python/ray/setup-dev.py --allow rllib`: linked only
`site-packages/ray/rllib` to the checkout's `python/ray/rllib` and
skipped every other package.
- `python python/ray/setup-dev.py --allow rllib tune train`: linked
`tune` and `train`, reported `rllib` as already linked, and skipped the
other 20 packages.
- Item 2: static checks on the new `.md` passed. They confirm the
frontmatter parses, the fences balance, and no RST constructs or
scheme-less links are left. The page has no `testcode` or doctest
blocks, and `doc/BUILD.bazel` doesn't name it. Heading levels were
checked against the live `/en/master` page. The Read the Docs preview
build and a render diff against `/en/master` are pending.
- Item 3: the render diff against `/en/master` is expected to differ at
the top of the page. `/en/master` currently shows the broken literal
text, and this PR shows the admonition.
- Item 4: the target heading exists in `vsphere.md`, and
`myst_heading_anchors = 4` in `conf.py` generates its anchor.
- `pre-commit` ran on every commit. The master-branch link check is the
only hook that applies, and it passed.

This PR was prepared with AI assistance (Claude Code). I reviewed every
changed line.

🤖 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]>
dstrodtman added a commit to pseudo-rnd-thoughts/ray that referenced this pull request Oct 20, 2026
Undo the Markdown conversion, which ray-project#66811 already covers, and keep the
style edits in RST.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
#67116 converts CONTRIBUTING.rst to Markdown alongside its content
update, so remove the conversion here. This restores CONTRIBUTING.rst,
the AGENTS.md and ray-soft-wrap references to it, and its
test.rules.test.txt expectation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman dstrodtman changed the title [ci][doc] Convert the root README and CONTRIBUTING from RST to Markdown [ci][doc] Convert the root README and other READMEs from RST to Markdown Oct 20, 2026
@dstrodtman
dstrodtman merged commit a1a4a74 into master Nov 2, 2026
6 checks passed
@dstrodtman
dstrodtman deleted the djs-261007-root-readme-md branch November 2, 2026 21:03
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 go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants