-
-
Notifications
You must be signed in to change notification settings - Fork 855
Avoid over-linking #1293 #1294
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
Avoid over-linking #1293 #1294
Changes from 1 commit
60426a1
02b0409
d8ab8d0
834893f
bc2b675
ec1f531
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,11 +30,21 @@ external links ```Link text <https://example.com>`_`` :ref:`hyperl | |
roles w/ custom text ``:role:`custom text <target>``` :ref:`roles` | ||
roles w/ only last part ``:role:`~hidden.hidden.visible``` :ref:`roles` | ||
roles w/o link ``:role:`!target``` :ref:`roles` | ||
roles w/o link, short ``:role:`!visible``` (Note 1) :ref:`roles` | ||
issues ``:gh:`ID```, ``:issue:`ID``` :ref:`roles` | ||
CPython source ``:source:`PATH``` :ref:`roles` | ||
comments ``.. a comment`` :ref:`comments` | ||
======================= =========================================== ==================== | ||
|
||
Notes: | ||
|
||
(1) | ||
For an only-last-part reference with a suppressed link, | ||
``:role:`~!hidden.visible``` makes more semantic sense, but it causes | ||
a warning as Sphinx tries to look up the reference ``!hidden.visible`` | ||
which does not exist. The shorter form ``:role:`!visible`` renders as | ||
desired and will build successfully. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure this should be included here. The quick reference lists commonly used markup, and what's being described here is not very common. I would move this paragraph in the linked "roles" section, where the nuances of using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It took a few developers a while to work out what happened when trying to combine There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What I'm thinking is:
My suggestion is to add: * Combi
8000
ning ``~`` and ``!`` (e.g. ``:meth:`~!Queue.Queue.get```) is not supported.
You can obtain the same result by simply using `!` and the last component of
the target (e.g. ``:meth:`!get```). in the "roles" section, after the bullet points that already explain The entry in the table could be removed altogether, since it's not a very common construct (trusting that the reader will follow the link looking for more information). If you prefer to keep it, the table should be updated by:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nedbat Let me take some time to read @ezio-melotti's comment. Ezio makes some good points especially considering the original intent of the chart. There needs to be a new doc contributor cheat sheet (that is useful to current contributors) to guide folks on many of these markup constructs. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ezio-melotti I like your suggestion, and have made it in the latest commit. |
||
|
||
|
||
.. _rst-primer: | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.