-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Fix #155016 for Docathon - convert rst to markdown #155198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/155198
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit f2ccb9c with merge base ee5c290 ( FLAKY - The following job failed but was likely due to flakiness present on trunk:
BROKEN TRUNK - The following job failed but was present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
❌ 🤖 pytorchbot command failed:
Try |
Didn't find following labels among repository labels: module:,docs,topic:,not,user,facing,topic:,docs |
@pytorchbot label docathon-h1-2025 |
@pytorchbot label topic: not user facing |
Didn't find following labels among repository labels: topic:,not,user,facing |
@pytorchbot label "topic: not user facing" |
@pytorchbot label "topic: docs" |
00f13ae
to
83056f8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good overall - can you resolve the merge conflict?
For example, it converted this in
To this:
These are definitely not valid anchor links. I saw that in
and then wherever that header is, we would put:
Just want to confirm that this is the style we should adopt. I tried to use explicit headers as specified per here, but those did not output correctly when running
|
thanks for providing these details:
|
83056f8
to
dee4018
Compare
I think we need to fix these errors by fixing rst -> .md extensions in the include directives in these locations:
|
dee4018
to
1bae2c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python code change sounds good!
I think this won't work unfortunately since we probably can't use .md includes in docstrings themselves. Sorry for the confusion. We should undo the changes in the rnn.py files, and keep cudnn_rnn_determinism.rst, cudnn_persistent_rnn.rst as .rst files. |
1bae2c8
to
a997977
Compare
It looks like it doesn't like the reference type of link in the docstring itself. You can change the ref to use a direct link instead: pytorch/torch/utils/data/dataloader.py Lines 227 to 228 in c88e87f
|
8558661
to
0236637
Compare
0236637
to
6e1d7c1
Compare
Ahhh now the docstring is too wide:
Any way around this? |
One sec - |
b10e07f
to
5663df7
Compare
you can just undo your changes to data.rst on this branch (save them somewhere), then:
|
Yep should be good now. |
Used rst2myst tool: https://rst-to-myst.readthedocs.io/en/latest/ for the initial conversion and then hand-modified the broken links and python syntax highlighting in the code blocks. Squash svekars comments in the original PR. Also this commit is broken into 2 so that we can keep the git log history of data.md.
Second commit whereas the first was just a git mv to maintain history of data.rst
6356a57
to
f2ccb9c
Compare
LGTM! |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…5198) Used [rst2myst tool](https://rst-to-myst.readthedocs.io/en/latest/) One note is that "Created On" and "Last Updated On" banner doesn't show in the markdown files... I'm not sure if that's just an artifact of my local build though. Fixes pytorch#155016 Docs comparison (check out the 'new' whenever docs build) 1. cuda ([old](https://docs.pytorch.org/docs/main/cuda.html) vs. [new](https://docs-preview.pytorch.org/pytorch/pytorch/155198/cuda.html)) 2. cuda.tunable ([old](https://docs.pytorch.org/docs/main/cuda.tunable.html) vs. [new](https://docs-preview.pytorch.org/pytorch/pytorch/155198/cuda.tunable.html)) 3. leave cudnn_persistent_rnn.rst as is because it's reused in docstrings 4. cudnn_rnn_determinism.rst as is because it's reused in docstrings. 5. data ([old](https://docs.pytorch.org/docs/main/data.html) vs. [new](https://docs-preview.pytorch.org/pytorch/pytorch/155198/data.html)) Pull Request resolved: pytorch#155198 Approved by: https://github.com/albanD, https://github.com/svekars
Used rst2myst tool
One note is that "Created On" and "Last Updated On" banner doesn't show in the markdown files... I'm not sure if that's just an artifact of my local build though.
Fixes #155016
Docs comparison (check out the 'new' whenever docs build)
cc @svekars @sekyondaMeta @AlannaBurke