-
-
Notifications
You must be signed in to change notification settings - Fork 872
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
Merged
Merged
Avoid over-linking #1293 #1294
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
60426a1
Avoid over-linking
nedbat 02b0409
Update documentation/markup.rst
nedbat d8ab8d0
two updates from comments
nedbat 834893f
update per ezio-melotti's comment
nedbat bc2b675
fix a sphinx lint failure
nedbat ec1f531
Update documentation/markup.rst
nedbat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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
!
and~
are covered in more detail.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 took a few developers a while to work out what happened when trying to combine
~!
, so I think it will be helpful to leave here.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 I'm thinking is:
~
and!
are explained) for ways to combine~
/!
they won't find it there, unless you duplicate the note thereroles w/o link, short
is not too clear, sinceshort
doesn't mirroronly last part
(understandably, due to lack of space)~
and!
together, but:role:`!visible`
doesn't seem an obvious answer to the question (unless they keep scrolling and read the note), especially since it doesn't have any apparent difference from:role:`!target`
~
and!
are a Sphinx implementation detail that shouldn't matter to the reader, so I would omit them from the noteMy suggestion is to add:
in the "roles" section, after the bullet points that already explain
~
and!
and useQueue.Queue.get
as an example.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:
roles w/o link, only last part
to mirror the text ofroles w/ only last part
roles w/o link
comes first,roles w/ only last part
next, androles w/o link, only last part
just after, so that the use of!visible
is more evident.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.
@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 comment
The 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.