Skip to content

Replace custom roles with styled extlinks #1351

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 2 commits into from
Jul 16, 2024

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Jul 15, 2024

We can replace the custom roles used for cpy-file and gh-label with extlinks, which removes a fair amount of code. One thing, though, the custom roles had code formatting, and extlinks have no special formatting by default.

However, with the newly-released Sphinx 7.4.0, a unique class is added to each extlink, so we can now add our own styling.


📚 Documentation preview 📚: https://cpython-devguide--1351.org.readthedocs.build/

@AA-Turner AA-Turner merged commit 47e18d9 into python:main Jul 16, 2024
4 checks passed
@hugovk hugovk deleted the replace-custom-roles-with-extlinks branch July 16, 2024 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants