What's the correct way to add context tags/badges? #7137
Answered
by
alexvoss
araujoarthur
asked this question in
Q&A
-
Hello! I've been searching for a way to add this to my docs: But the closest approach I got up to now was to add icons and text side by side: |
Beta Was this translation helpful? Give feedback.
Answered by
alexvoss
May 1, 2024
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
araujoarthur
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.