Skip to content

How do I replicate the 'conventions' icons used in the Material-for-mkdocs documentation site? #6544

Answered by kamilkrzyskow
rathboma asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  1. This is currently a custom feature of the mkdocs-material docs, and isn't exported in a straightforward way for other users to use. However, this will likely change, as people often ask for it.
  2. The <!-- md:plugin --> tokens/identifiers/shortcodes are processed by the shortcodes hook:
    https://github.com/squidfunk/mkdocs-material/blob/master/src/overrides/hooks/shortcodes.py
  3. The hook replaces the shortcodes with a Markdown structure
  4. The HTML is styled additionally with a custom CSS (mkdocs-material uses SCSS, which is later …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rathboma
Comment options

@squidfunk
Comment options

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