A MkDocs plugin that render meraid graph to mermaid style
Install the package with pip:
pip install git+https://github.com/sebastienwarin/mkdocs-mermaid-plugin
Enable this plugin in your mkdocs.yml
:
plugins:
- markdownmermaid
extra_javascript:
- https://unpkg.com/[email protected]/dist/mermaid.min.js
Note: Don't forget to include the mermaid.min.js (local or remotely) in your
mkdocs.yml
To override the default options, declare them in you mkdocs.yml
file.
For example :
plugins:
- markdownmermaid:
init_options:
- startOnLoad: true
- theme: "forest"
- themeCSS: ".node rect { fill: red; }"
- flowchart:
- curve: "cardinal"
- useMaxWidth: true
More information about mermaid in the Mermaid documentation More information about plugins in the MkDocs documentation