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

[3.11] Remove misformatted exclamation marks in docs (GH-102694) #102716

Merged
merged 1 commit into from
Mar 15, 2023

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Mar 15, 2023

(cherry picked from commit 8647ba4)

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>
@hugovk hugovk requested a review from vsajip as a code owner March 15, 2023 07:13
@bedevere-bot bedevere-bot added docs Documentation in the Doc dir skip news labels Mar 15, 2023
@hugovk hugovk merged commit 6b6c2f5 into python:3.11 Mar 15, 2023
@hugovk hugovk deleted the backport-8647ba4-3.11 branch March 15, 2023 07:25
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.

3 participants