Skip to content

How to mermaid.registerIconPacks in MkDocs #2499

Answered by facelessuser
rmorshea asked this question in Q&A
Discussion options

You must be logged in to vote

I don't directly offer Mermaid support, what I do offer is my original notes on how I implemented what I use in my own documents, and why I do what I do: https://facelessuser.github.io/pymdown-extensions/extras/mermaid.

I'm not an expert on everything Mermaid, nor have I tried all the features in Mermaid, nor am I certain my approach will be compatible with everything in Mermaid.

I don't normally do this, so this will be about as much assistance I will provide, but I dropped the icon loading snippet into this file: https://github.com/facelessuser/pymdown-extensions/blob/main/docs/src/js/uml.js

diff --git a/docs/src/js/uml.js b/docs/src/js/uml.js
index 139ef215..57571fc8 100644
--- a/docs/…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@rmorshea
Comment options

@rmorshea
Comment options

@facelessuser
Comment options

@facelessuser
Comment options

Answer selected by rmorshea
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