How do I replicate the 'conventions' icons used in the Material-for-mkdocs documentation site? #6544
-
Hi everyone, First, wow is this an amazing project. The docs produced are fantastic. Quick question - I'd like to replicate the icons used in the project documentation, like these: I can see in the code that they use this block to achieve this: <!-- md:version 9.2.0 -->
<!-- md:plugin -->
<!-- md:flag experimental --> I can't figure out if this is a built in feature? How would I achieve the same thing? Thanks anyone for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Hello @rathboma, To answer in short again:
To enable the hook, you need to add it to the |
Beta Was this translation helpful? Give feedback.
Hello @rathboma,
this was asked many times in different ways in the discussions, searching with
conventions
I got to this discussion:To answer in short again:
<!-- md:plugin -->
tokens/identifiers/shortcodes are processed by the shortcodes hook:https://github.com/squidfunk/mkdocs-material/blob/master/src/overrides/hooks/shortcodes.py