-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-45640: Tokens are now clickable #29260
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
Thanks @Arthur-Milchior for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
GH-29621 is a backport of this pull request to the 3.10 branch. |
Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 3295910) Co-authored-by: Arthur Milchior <arthur@milchior.fr>
Thanks @Arthur-Milchior for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
Sorry, @Arthur-Milchior and @ambv, I could not cleanly backport this to |
Co-authored-by: Łukasz Langa <lukasz@langa.pl>. (cherry picked from commit 3295910) Co-authored-by: Arthur Milchior <arthur@milchior.fr>
GH-29623 is a backport of this pull request to the 3.9 branch. |
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
bpo-45640: Tokens are now clickable
In the current documentation, production tokens are not clickable. For example in https://docs.python.org/3/reference/expressions.html#yield-expressions , you highlight
yield_from
as a token but do not link to it.I suppose that the goal, when using :token:
yeld_from
, was to ensure that the token links to its definition. However, Sphinx require to use :token:~python-grammar:yeld_from
for the link to appear.I suggest adding ~python-grammar after each token:.
Testing: compiling the doc and checking that the above mentioned token is now a link
https://bugs.python.org/issue45640