Skip to content

Remove misformatted exclamation marks in docs #102694

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
Mar 15, 2023
Merged

Remove misformatted exclamation marks in docs #102694

merged 1 commit into from
Mar 15, 2023

Conversation

tom93
Copy link
Contributor

@tom93 tom93 commented Mar 14, 2023

Remove the exclamation mark from :program:`!foo` in .rst files because it inadvertently shows up in the rendered HTML.

(Sphinx's cross-referencing roles use a '!' prefix to suppress hyperlinking[1], but :program: is not a cross-referencing role so the '!' is displayed verbatim.)

The exclamation marks in venv.rst were introduced in #98350. See #98350 (comment) and #98350 (comment) for additional discussion.

[1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-syntax

Remove the exclamation mark from :program:`!foo` in .rst files because
it inadvertently shows up in the rendered HTML.

(Sphinx's cross-referencing roles use a '!' prefix to suppress
hyperlinking[1], but :program: is not a cross-referencing role so the
'!' is displayed verbatim.)

The exclamation marks in venv.rst were introduced in #98465.

[1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-syntax
@tom93 tom93 requested a review from vsajip as a code owner March 14, 2023 13:51
@bedevere-bot bedevere-bot added docs Documentation in the Doc dir skip news awaiting review labels Mar 14, 2023
@ghost
Copy link

ghost commented Mar 14, 2023

All commit authors signed the Contributor License Agreement.
CLA signed

@hugovk
Copy link
Member

hugovk commented Mar 14, 2023

Thanks for spotting this, it was noted at #98350 (comment) post-merge and was to be fixed but I guess it dropped off the todo lists.

@tom93 This PR is possibly trivial enough to merge without the CLA, but if you're okay signing it that would be much quicker and easier.

@hugovk hugovk added needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes labels Mar 14, 2023
Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tom93
Copy link
Contributor Author

tom93 commented Mar 15, 2023

Thanks for reviewing. I've signed the CLA.

it was noted at #98350 (comment) post-merge and was to be fixed but I guess it dropped off the todo lists.

I missed that (was looking at the wrong PR). Is it okay if I force-push to change the commit message from this to this? (branch fix-rst-program-excl-mark-v2)

@hugovk
Copy link
Member

hugovk commented Mar 15, 2023

We generally avoid force-pushing because PRs get squash merged anyway, so let's update with a regular commit. Thanks!

@tom93
Copy link
Contributor Author

tom93 commented Mar 15, 2023

I'm not sure how to update the commit message using a second commit, but it's no big deal -- feel free to merge as-is. Or if you have a chance to set the commit message when merging, here is my proposed message:

Remove the exclamation mark from :program:`!foo` in .rst files because
it inadvertently shows up in the rendered HTML.

(Sphinx's cross-referencing roles use a '!' prefix to suppress
hyperlinking[1], but :program: is not a cross-referencing role so the
'!' is displayed verbatim.)

The exclamation marks in venv.rst were introduced in #98350. See
comments [2] and [3] for additional discussion.

[1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-syntax
[2]: https://github.com/python/cpython/pull/98350#issuecomment-1285965759
[3]: https://github.com/python/cpython/pull/98350#issuecomment-1286394047

Reported-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>

@hugovk
Copy link
Member

hugovk commented Mar 15, 2023

I mixed up commit messages with the news file, which we don't have here :)

I'll use that when merging, thanks again!

@hugovk hugovk merged commit 8647ba4 into python:main Mar 15, 2023
@miss-islington
Copy link
Contributor

Thanks @tom93 for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @tom93 and @hugovk, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 8647ba4b639077e201751ae6dbd82e8bfcf80895 3.11

@miss-islington
Copy link
Contributor

Sorry @tom93 and @hugovk, I had trouble checking out the 3.10 backport branch.
Please retry by removing and re-adding the "needs backport to 3.10" label.
Alternatively, you can backport using cherry_picker on the command line.
cherry_picker 8647ba4b639077e201751ae6dbd82e8bfcf80895 3.10

@hugovk hugovk added needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes and removed needs backport to 3.11 only security fixes needs backport to 3.10 only security fixes labels Mar 15, 2023
@miss-islington
Copy link
Contributor

Thanks @tom93 for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Thanks @tom93 for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @tom93 and @hugovk, I could not cleanly backport this to 3.10 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 8647ba4b639077e201751ae6dbd82e8bfcf80895 3.10

@miss-islington
Copy link
Contributor

Sorry @tom93 and @hugovk, I had trouble checking out the 3.11 backport branch.
Please retry by removing and re-adding the "needs backport to 3.11" label.
Alternatively, you can backport using cherry_picker on the command line.
cherry_picker 8647ba4b639077e201751ae6dbd82e8bfcf80895 3.11

hugovk pushed a commit to hugovk/cpython that referenced this pull request Mar 15, 2023
Remove the exclamation mark from :program:`!foo` in .rst files because
it inadvertently shows up in the rendered HTML.

(Sphinx's cross-referencing roles use a '!' prefix to suppress
hyperlinking[1], but :program: is not a cross-referencing role so the
'!' is displayed verbatim.)

The exclamation marks in venv.rst were introduced in python#98350. See
comments [2] and [3] for additional discussion.

[1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-syntax
[2]: python#98350 (comment)
[3]: python#98350 (comment)

Reported-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
(cherry picked from commit 8647ba4)
hugovk added a commit to hugovk/cpython that referenced this pull request Mar 15, 2023
Remove the exclamation mark from :program:`!foo` in .rst files because
it inadvertently shows up in the rendered HTML.

(Sphinx's cross-referencing roles use a '!' prefix to suppress
hyperlinking[1], but :program: is not a cross-referencing role so the
'!' is displayed verbatim.)

The exclamation marks in venv.rst were introduced in pythonGH-98350. See
comments [2] and [3] for additional discussion.

[1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.htmlGH-cross-referencing-syntax
[2]: https://github.com/python/cpython/pull/98350GH-issuecomment-1285965759
[3]: https://github.com/python/cpython/pull/98350GH-issuecomment-1286394047

Reported-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>.
(cherry picked from commit 8647ba4)

Co-authored-by: Tom Levy <tomlevy93@gmail.com>
@tom93
Copy link
Contributor Author

tom93 commented Mar 15, 2023

Thanks for merging! The backport issue is probably because my commit also removes a '!' from Misc/NEWS.d/3.12.0a2.rst (which doesn't exist in 3.10/3.11).

hugovk pushed a commit to hugovk/cpython that referenced this pull request Mar 15, 2023
Remove the exclamation mark from :program:`!foo` in .rst files because
it inadvertently shows up in the rendered HTML.

(Sphinx's cross-referencing roles use a '!' prefix to suppress
hyperlinking[1], but :program: is not a cross-referencing role so the
'!' is displayed verbatim.)

The exclamation marks in venv.rst were introduced in pythonGH-98350. See
comments [2] and [3] for additional discussion.

[1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.htmlGH-cross-referencing-syntax
[2]: https://github.com/python/cpython/pull/98350GH-issuecomment-1285965759
[3]: https://github.com/python/cpython/pull/98350GH-issuecomment-1286394047

Reported-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>.
(cherry picked from commit 8647ba4)

Co-authored-by: Tom Levy <tomlevy93@gmail.com>
@bedevere-bot
Copy link

GH-102716 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Mar 15, 2023
hugovk pushed a commit to hugovk/cpython that referenced this pull request Mar 15, 2023
Remove the exclamation mark from :program:`!foo` in .rst files because
it inadvertently shows up in the rendered HTML.

(Sphinx's cross-referencing roles use a '!' prefix to suppress
hyperlinking[1], but :program: is not a cross-referencing role so the
'!' is displayed verbatim.)

The exclamation marks in venv.rst were introduced in pythonGH-98350. See
comments [2] and [3] for additional discussion.

[1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.htmlGH-cross-referencing-syntax
[2]: https://github.com/python/cpython/pull/98350GH-issuecomment-1285965759
[3]: https://github.com/python/cpython/pull/98350GH-issuecomment-1286394047

Reported-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>.
(cherry picked from commit 8647ba4)

Co-authored-by: Tom Levy <tomlevy93@gmail.com>
@bedevere-bot
Copy link

GH-102717 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Mar 15, 2023
hugovk added a commit that referenced this pull request Mar 15, 2023
…2716)

Remove the exclamation mark from :program:`!foo` in .rst files because
it inadvertently shows up in the rendered HTML.

(Sphinx's cross-referencing roles use a '!' prefix to suppress
hyperlinking[1], but :program: is not a cross-referencing role so the
'!' is displayed verbatim.)

The exclamation marks in venv.rst were introduced in #98350. See
comments [2] and [3] for additional discussion.

[1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-syntax
[2]: #98350 (comment)
[3]: #98350 (comment)

Reported-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Tom Levy <tomlevy93@gmail.com>
hugovk added a commit that referenced this pull request Mar 15, 2023
…2717)

Remove the exclamation mark from :program:`!foo` in .rst files because
it inadvertently shows up in the rendered HTML.

(Sphinx's cross-referencing roles use a '!' prefix to suppress
hyperlinking[1], but :program: is not a cross-referencing role so the
'!' is displayed verbatim.)

The exclamation marks in venv.rst were introduced in #98350. See
comments [2] and [3] for additional discussion.

[1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-syntax
[2]: #98350 (comment)
[3]: #98350 (comment)

Reported-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Tom Levy <tomlevy93@gmail.com>
Fidget-Spinner pushed a commit to Fidget-Spinner/cpython that referenced this pull request Mar 27, 2023
Remove the exclamation mark from :program:`!foo` in .rst files because
it inadvertently shows up in the rendered HTML.

(Sphinx's cross-referencing roles use a '!' prefix to suppress
hyperlinking[1], but :program: is not a cross-referencing role so the
'!' is displayed verbatim.)

The exclamation marks in venv.rst were introduced in python#98350. See
comments [2] and [3] for additional discussion.

[1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-syntax
[2]: python#98350 (comment)
[3]: python#98350 (comment)

Reported-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
warsaw pushed a commit to warsaw/cpython that referenced this pull request Apr 11, 2023
Remove the exclamation mark from :program:`!foo` in .rst files because
it inadvertently shows up in the rendered HTML.

(Sphinx's cross-referencing roles use a '!' prefix to suppress
hyperlinking[1], but :program: is not a cross-referencing role so the
'!' is displayed verbatim.)

The exclamation marks in venv.rst were introduced in python#98350. See
comments [2] and [3] for additional discussion.

[1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#cross-referencing-syntax
[2]: python#98350 (comment)
[3]: python#98350 (comment)

Reported-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants