Skip to content

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Sep 13, 2025

Thanks a lot to @AA-Turner for help.

I decided not to change the heading, because it can be a part of the existing links: https://docs.python.org/3/reference/compound_stmts.html#the-match-statement And we can break it.

I also added a quick test for :keyword:case, let's see :)


📚 Documentation preview 📚: https://cpython-previews--138878.org.readthedocs.build/

@sobolevn
Copy link
Member Author

sobolevn commented Sep 13, 2025

Looks like that it is correct now:

:keyword:`case` 

generates https://cpython-previews--138878.org.readthedocs.build/en/138878/reference/compound_stmts.html#case as a link.

And it generates this HTML:

<span id="case"></span>
<span id="match"></span>
Снимок экрана 2025-09-13 в 23 18 40

So, I am reverting the test change :)
It was a success.

@AA-Turner AA-Turner merged commit 848d926 into python:main Sep 21, 2025
31 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Sep 21, 2025
@miss-islington-app
Copy link

Thanks @sobolevn for the PR, and @AA-Turner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 21, 2025
(cherry picked from commit 848d926)

Co-authored-by: sobolevn <mail@sobolevn.me>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 21, 2025
(cherry picked from commit 848d926)

Co-authored-by: sobolevn <mail@sobolevn.me>
@bedevere-app
Copy link

bedevere-app bot commented Sep 21, 2025

GH-139200 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Sep 21, 2025
@bedevere-app
Copy link

bedevere-app bot commented Sep 21, 2025

GH-139201 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Sep 21, 2025
hugovk pushed a commit that referenced this pull request Sep 22, 2025
#139200)

Make sure the ``:keyword:`` role works for ``case`` (GH-138878)
(cherry picked from commit 848d926)

Co-authored-by: sobolevn <mail@sobolevn.me>
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
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants