Repository navigation
[doc] Ban new .rst files under doc/source/ via lint check - #63057
Conversation
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]>
|
There was a problem hiding this comment.
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.
9ca1f02 to
5c29a4a
Compare
5c29a4a to
41b62d9
Compare
|
i liked rst :( thanks for doing this! |
41b62d9 to
a13066a
Compare
|
This pull request has been automatically marked as stale because it has not had 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. |
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]>
…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]>
…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]>
…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]>
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]