Skip to content

[doc] Ban new .rst files under doc/source/ via lint check - #63057

Merged
elliot-barn merged 2 commits into
masterfrom
andrew/revup/master/ban-new-rst
Jun 2, 2026
Merged

elliot-barn merged 2 commits into
masterfrom
andrew/revup/master/ban-new-rst

Conversation

@andrew-anyscale

@andrew-anyscale andrew-anyscale commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

Add a lint check that fails any PR introducing a new .rst file under doc/source/. Edits to existing .rst files keep working, and renames done with git mv (e.g. RST -> MyST) keep working because the diff uses --diff-filter=A which excludes status R (rename) entries.

Topic: ban-new-rst
Labels: draft
Signed-off-by: andrew [email protected]

Add a lint check that fails any PR introducing a new .rst file under doc/source/. Edits to existing .rst files keep working, and renames done with `git mv` (e.g. RST -> MyST) keep working because the diff uses --diff-filter=A which excludes status R (rename) entries.

Topic: ban-new-rst
Labels: draft
Signed-off-by: andrew <[email protected]>
@andrew-anyscale

andrew-anyscale commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor Author

Reviews in this chain:
└#63057 [doc] Ban new .rst files under doc/source/ via lint check
 └#63058 [dnm] validating lint failure.

@andrew-anyscale

andrew-anyscale commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor Author
# head base diff date summary
0 9ca1f024 6f95fe92 diff Apr 30 16:41 PM 3 files changed, 72 insertions(+)
1 5c29a4af 6f95fe92 diff Apr 30 16:57 PM 1 file changed, 23 insertions(+), 20 deletions(-)
2 41b62d9a 6f95fe92 diff Apr 30 17:22 PM 1 file changed, 3 insertions(+), 1 deletion(-)
3 a13066a1 6f95fe92 diff May 1 13:04 PM 1 file changed, 15 insertions(+), 3 deletions(-)

@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 introduces a new linting check to prohibit the addition of new .rst files in the doc/source/ directory, encouraging the use of MyST Markdown instead. The implementation includes a new Python script, doc/test_no_new_rst.py, and its integration into the CI pipeline. Feedback suggests simplifying the Git diff logic using the triple-dot syntax and improving the script's maintainability by encapsulating the logic within a main() function and allowing the Git remote to be configurable.

Comment thread doc/test_no_new_rst.py Resolved
Comment thread doc/test_no_new_rst.py Resolved
@andrew-anyscale
andrew-anyscale force-pushed the andrew/revup/master/ban-new-rst branch from 9ca1f02 to 5c29a4a Compare April 30, 2026 23:57
@andrew-anyscale
andrew-anyscale marked this pull request as ready for review May 1, 2026 00:11
@andrew-anyscale
andrew-anyscale requested a review from a team as a code owner May 1, 2026 00:11
@andrew-anyscale
andrew-anyscale marked this pull request as draft May 1, 2026 00:22
@andrew-anyscale
andrew-anyscale force-pushed the andrew/revup/master/ban-new-rst branch from 5c29a4a to 41b62d9 Compare May 1, 2026 00:22
@richardliaw

Copy link
Copy Markdown
Contributor

i liked rst :( thanks for doing this!

@andrew-anyscale
andrew-anyscale force-pushed the andrew/revup/master/ban-new-rst branch from 41b62d9 to a13066a Compare May 1, 2026 20:04
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

You can always ask for help on our discussion forum or Ray's public slack channel.

If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@github-actions github-actions Bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label May 16, 2026
@dstrodtman
dstrodtman marked this pull request as ready for review May 16, 2026 01:50

@dstrodtman dstrodtman 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.

lgtm

@ray-gardener ray-gardener Bot added docs An issue or change related to documentation core Issues that should be addressed in Ray Core devprod labels May 16, 2026
@github-actions github-actions Bot added unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it. and removed stale The issue is stale. It will be closed within 7 days unless there are further conversation labels May 16, 2026
dstrodtman added a commit to dstrodtman/ray that referenced this pull request May 18, 2026
Follows up ray-project#63057 (ban new .rst lint check) by documenting
the policy in two places contributors and agents will read first:

- doc/README.md: new "Contributing new documentation pages" section.
- doc/.claude/CLAUDE.md: new "File format for new pages" section,
  including the deliberate `git mv` allowance for renames and directory
  reorganization.

Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Jun 1, 2026
@elliot-barn
elliot-barn merged commit 650dd60 into master Jun 2, 2026
3 checks passed
@elliot-barn
elliot-barn deleted the andrew/revup/master/ban-new-rst branch June 2, 2026 15:31
rueian pushed a commit to rueian/ray that referenced this pull request Jun 4, 2026
…t#63057)

Add a lint check that fails any PR introducing a new .rst file under
doc/source/. Edits to existing .rst files keep working, and renames done
with `git mv` (e.g. RST -> MyST) keep working because the diff uses
--diff-filter=A which excludes status R (rename) entries.

Topic: ban-new-rst
Labels: draft
Signed-off-by: andrew <[email protected]>

Signed-off-by: andrew <[email protected]>
Co-authored-by: Douglas Strodtman <[email protected]>
limarkdcunha pushed a commit to limarkdcunha/ray that referenced this pull request Jun 30, 2026
…t#63057)

Add a lint check that fails any PR introducing a new .rst file under
doc/source/. Edits to existing .rst files keep working, and renames done
with `git mv` (e.g. RST -> MyST) keep working because the diff uses
--diff-filter=A which excludes status R (rename) entries.

Topic: ban-new-rst
Labels: draft
Signed-off-by: andrew <[email protected]>

Signed-off-by: andrew <[email protected]>
Co-authored-by: Douglas Strodtman <[email protected]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
…t#63057)

Add a lint check that fails any PR introducing a new .rst file under
doc/source/. Edits to existing .rst files keep working, and renames done
with `git mv` (e.g. RST -> MyST) keep working because the diff uses
--diff-filter=A which excludes status R (rename) entries.

Topic: ban-new-rst
Labels: draft
Signed-off-by: andrew <[email protected]>

Signed-off-by: andrew <[email protected]>
Co-authored-by: Douglas Strodtman <[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 devprod docs An issue or change related to documentation go add ONLY when ready to merge, run all tests unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants