Skip to content

What's the correct way to add context tags/badges? #7137

Answered by alexvoss
araujoarthur asked this question in Q&A
Discussion options

You must be logged in to vote

You can have a look at how this is done in the Material for MkDocs documentation in src/overrides/hooks/shortcodes.py. The corresponding CSS is in src/overrides/assets/stylesheets/custom/_typeset.scss.

Note that this is not part of Material for MkDocs but a customization for our own documentation. To find previous answers to the same question, search for "convention" or "shortcodes" in the discussions.

Replies: 1 comment 1 reply

Comment options

alexvoss
May 1, 2024
Collaborator Sponsor

You must be logged in to vote
1 reply
@araujoarthur
Comment options

Answer selected by araujoarthur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants