Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove tilde in code links where not necessary #20303

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 1 commit into from
May 26, 2021

Conversation

timhoffm
Copy link
Member

From the shpinx docs:

If you prefix the content with ~, the link text will only be the last component of the target.

If only a single component is given, the tilde doesn't have any effect
(`~.foo` is the same as `.foo`), so we can remove it to increase
readability.

From the [shpinx docs](https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-syntax):

> If you prefix the content with ~, the link text will only be the last component of the target.

If only a single component is given, the tilde doesn't have any effect
(`~.foo` is the same as `.foo`), so we can remove it to increase
readability.
@timhoffm timhoffm added this to the v3.5.0 milestone May 25, 2021
@QuLogic QuLogic merged commit 3bd874b into matplotlib:master May 26, 2021
@timhoffm timhoffm deleted the doc-tilde branch June 10, 2022 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants