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

sphinx.ext.extlinks: Add extlink-{name} CSS class to links #12319

Merged
merged 3 commits into from May 15, 2024

Conversation

hugovk
Copy link
Contributor

@hugovk hugovk commented Apr 24, 2024

Feature or Bugfix

  • Feature

Purpose

  • Allow theme authors and docs builders flexibility to apply whatever custom formatting to an extlink without the need for custom extensions.

Relates

sphinx/ext/extlinks.py Outdated Show resolved Hide resolved
@picnixz
Copy link
Member

picnixz commented Apr 25, 2024

I personally am good with that approach. @AA-Turner I'll be out from now on, so I'll let you merge this one if you want to add some comments or change the class name.

Copy link
Member

@chrisjsewell chrisjsewell left a comment

Choose a reason for hiding this comment

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

all good cheers

@chrisjsewell chrisjsewell changed the title Add a CSS class to extlinks for custom formatting sphinx.ext.extlinks: Add CSS class to extlinks for custom formatting May 15, 2024
@chrisjsewell chrisjsewell changed the title sphinx.ext.extlinks: Add CSS class to extlinks for custom formatting sphinx.ext.extlinks: Add extlink-{name} CSS class to links May 15, 2024
@chrisjsewell chrisjsewell merged commit c06f246 into sphinx-doc:master May 15, 2024
23 checks passed
chrisjsewell added a commit to chrisjsewell/sphinx that referenced this pull request May 15, 2024
chrisjsewell added a commit that referenced this pull request May 15, 2024
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.

sphinx.ext.extlinks: option for literal formatting?
3 participants