Visitar URL original
Fix RST backticks by hugovk · Pull Request #1554 · python/peps · GitHub
The Wayback Machine - https://web.archive.org/web/20210202061135/https://github.com/python/peps/pull/1554
Skip to content
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

Fix RST backticks #1554

Merged
merged 3 commits into from Aug 7, 2020
Merged

Fix RST backticks #1554

merged 3 commits into from Aug 7, 2020

Conversation

@hugovk
Copy link
Contributor

@hugovk hugovk commented Aug 6, 2020 •

Update:

  • PEP 12
  • PEP 548
  • PEP 554
  • PEP 565
  • PEP 572
  • PEP 573
  • PEP 575
  • PEP 588
  • PEP 591
  • PEP 595
  • PEP 605
  • PEP 610
  • PEP 613
  • PEP 621
  • PEP 622

In Markdown, single backticks are for inline code: for_example_like_this

In reStructuredText, single backticks are for "interpreted text" and "domain- or application-dependent" (see table below).

Ref:

table from link below

I'll send another PR to suggest adding linting to the CI (unless you'd prefer it here?).

@@ -88,7 +88,7 @@ across the codebase.

With explicit aliases, the type checker has enough information to error on the
actual definition of the bad type alias, and explain why: that :code:`MyGeneric(int)`
and `InvalidType` are not valid types. When the value expression is no longer
and code:`InvalidType` are not valid types. When the value expression is no longer

This comment has been minimized.

@hugovk

hugovk Aug 6, 2020
Author Contributor

The code: prefix is used here for consistency because the rest of this file uses it.

This comment has been minimized.

@tk0miya

tk0miya Aug 6, 2020

I guess you'd like to use :code: role here, right?

This comment has been minimized.

@brettcannon

brettcannon Aug 6, 2020
Member

I believe @tk0miya is suggesting:

Suggested change
and code:`InvalidType` are not valid types. When the value expression is no longer
and :code:`InvalidType` are not valid types. When the value expression is no longer

But we are not using docutils, so it probably should be:

Suggested change
and code:`InvalidType` are not valid types. When the value expression is no longer
and ``InvalidType`` are not valid types. When the value expression is no longer

This comment has been minimized.

@hugovk

hugovk Aug 6, 2020 •
Author Contributor

Yep, I did mean :code:, thanks!

But I'll update all the `:code:X` in this file to ``X``

This comment has been minimized.

@hugovk

hugovk Aug 6, 2020
Author Contributor

Done in 89c5896.

@hugovk hugovk force-pushed the hugovk:fix-rst-backticks branch from e0fc443 to 669e030 Aug 6, 2020
@hugovk hugovk force-pushed the hugovk:fix-rst-backticks branch from 669e030 to 76cbfeb Aug 6, 2020
Copy link
Member

@brettcannon brettcannon left a comment

Minor tweak, otherwise LGTM!

@@ -88,7 +88,7 @@ across the codebase.

With explicit aliases, the type checker has enough information to error on the
actual definition of the bad type alias, and explain why: that :code:`MyGeneric(int)`
and `InvalidType` are not valid types. When the value expression is no longer
and code:`InvalidType` are not valid types. When the value expression is no longer

This comment has been minimized.

@brettcannon

brettcannon Aug 6, 2020
Member

I believe @tk0miya is suggesting:

Suggested change
and code:`InvalidType` are not valid types. When the value expression is no longer
and :code:`InvalidType` are not valid types. When the value expression is no longer

But we are not using docutils, so it probably should be:

Suggested change
and code:`InvalidType` are not valid types. When the value expression is no longer
and ``InvalidType`` are not valid types. When the value expression is no longer
@brettcannon brettcannon merged commit ba36ccc into python:master Aug 7, 2020
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@brettcannon
Copy link
Member

@brettcannon brettcannon commented Aug 7, 2020

Thanks!

@hugovk hugovk deleted the hugovk:fix-rst-backticks branch Aug 7, 2020
AA-Turner added a commit to AA-Turner/peps that referenced this pull request Aug 15, 2020
mnm678 added a commit to mnm678/peps that referenced this pull request Oct 22, 2020
gaborbernat added a commit to gaborbernat/peps that referenced this pull request Dec 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants