Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.4k
gh-139533: fix refs to code without proper markups on turtledemo doc#139534
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
| +------------------------+------------------------------+--------------------------------------+ | ||
| | Name| Description| Features| | ||
| +========================+==============================+======================================+ | ||
| |``bytedesign``| complex classical|:func:`tracer`,:func:`delay`,| |
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.
:mod: role seems to be more suitable for this case.
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.
Forbytedesign? It is a file in a module, not a module. Since it has no documentation, the rendered result will be the same anyway. I guess:source:`bytedesign <Lib/turtledemo/bytedesign.py>` would make sense, but I think the current one is fine.
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.
It is a module in a package, isn't it?
However, I haven't thought about the effects of :mod: at a module without documentation. I like the idea of making it easier to access source code. As demonstration scripts, it is natural that people want to see the code, particularly in educational contexts where the turtle is widely used
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.
My suggestion about :mod: is also, although sticks (``) are used on variables/literals/code, :mod: is a bigger warning saying "don't translate it". This issue arose from a discussion on this point. Is there something to this case? A role that escapes the string from the translation process?
febfc34 toa8985a9CompareStanFromIreland commentedOct 3, 2025
Please don't force push, it makes reviewing more difficult. |
aureliobarbosa commentedOct 7, 2025
|
StanFromIreland commentedOct 7, 2025
Nope, you just have to wait now. There is a long queue of PRs before this one I’m afraid. |
c903d76 intopython:mainUh oh!
There was an error while loading.Please reload this page.
Thanks@aureliobarbosa for the PR, and@gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…o doc (pythonGH-139534)(cherry picked from commitc903d76)Co-authored-by: Marco Barbosa <aureliobarbosa@gmail.com>pythongh-139533: fix refs to code without proper markups on turtledemo documentation
GH-141421 is a backport of this pull request to the3.14 branch. |
…o doc (pythonGH-139534)(cherry picked from commitc903d76)Co-authored-by: Marco Barbosa <aureliobarbosa@gmail.com>pythongh-139533: fix refs to code without proper markups on turtledemo documentation
GH-141422 is a backport of this pull request to the3.13 branch. |
gpshead commentedNov 11, 2025
I went ahead and merged this as it is an improvement. They aren't documented modules so |
StanFromIreland commentedNov 11, 2025
With my translator hat on, I agree. |
aureliobarbosa commentedNov 11, 2025
Thanks for the reviews@gpshead and@StanFromIreland. |
Uh oh!
There was an error while loading.Please reload this page.
gh-139533: fix refs to code without proper markups on turtledemo doc
Many references to scripts and functions onturtledemo module documentation do not use the properreStructuredText markups used on this repo. This PR fixes them.
📚 Documentation preview 📚:https://cpython-previews--139534.org.readthedocs.build/