Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
gh-127833: Fix grammar snippet formatting for help() output#129692
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Change pydoc_data to show the "input" of grammar snippetdirectives, which is formatted the way we want.See also this Sphinx issue:sphinx-doc/sphinx#13302And:sphinx-doc/sphinx#4454A known issue is cross-grammar links, like those inthe string format specification mini-language, which renderas reST source: element_index: `~python-grammar:digit`+ | `index_string`I don't see a good way to fix this before Sphinx is refactored.
This is usually done at release time.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
hugovk commentedFeb 6, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
(re:https://github.com/python/cpython/actions/runs/13162643246/job/36735040454?pr=129692, I've updated the branch from |
Thank you! |
This PR was made obsolete by new Sphinx and#130376. Thank you Adam! |
Uh oh!
There was an error while loading.Please reload this page.
Change pydoc_data to show the "input" of grammar snippet
directives, which is formatted the way we want.
See also this Sphinx issue:sphinx-doc/sphinx#13302
And:sphinx-doc/sphinx#4454
A known issue is cross-grammar links, like those in
the string format specification mini-language, which render
as reST source:
I don't see a good way to fix this before Sphinx is refactored.
📚 Documentation preview 📚:https://cpython-previews--129692.org.readthedocs.build/