-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
GH-97950: Use new-style index directive ('statement') #104162
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
! statement: break | ||
statement: for | ||
statement: while | ||
! pair: statement; break |
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.
What does the !
do?
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.
See https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-index
You can mark up “main” index entries by prefixing them with an exclamation mark. The references to “main” entries are emphasized in the generated index. For example, if two pages contain
A little hard to discover, unfortunately.
Thanks @AA-Turner for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry @AA-Turner and @hugovk, I had trouble checking out the |
Thanks @AA-Turner for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
GH-104163 is a backport of this pull request to the 3.11 branch. |
…-104162) (cherry picked from commit 55d50d1) Co-authored-by: Adam Turner <[email protected]>
Momentary backport confusion from merging this before the previous backport was merged. All good for the second attempt 🚀 |
…) (#104163) Co-authored-by: Adam Turner <[email protected]>
.. index::
entries #97950📚 Documentation preview 📚: https://cpython-previews--104162.org.readthedocs.build/