How to create a nicely-looking "default" tag? #7036
-
And by that I mean something like this: A quick search leads to this file, which doesn't look like something I can reuse for my project. Is there an equivalent? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This has been asked a few times before, for example here: #6724 These shortcodes are not part of Material for MkDocs but are a customization used for the documentation. You can add a hook like the one you referenced to your own project. |
Beta Was this translation helpful? Give feedback.
-
To add on to the other answer, yes, those little tags aren't part of mkdocs, but just to show you an example; they can be integrated if you know a little python. I simply took the shortcodes.py file from https://github.com/squidfunk/mkdocs-material/blob/master/src/overrides/hooks/shortcodes.py and then modified it to fit the tags and badges I needed. And even added an "example color" block to show the default colors like in the example link above. |
Beta Was this translation helpful? Give feedback.
This has been asked a few times before, for example here: #6724
These shortcodes are not part of Material for MkDocs but are a customization used for the documentation. You can add a hook like the one you referenced to your own project.