Skip to content

Commit 11ca0ec

Browse files
authored
Merge pull request #5281 from jitseklomp/mermaid
Add mermaid mkdocs plugin
2 parents d3bb075 + 07973c3 commit 11ca0ec

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

mkdocs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ plugins:
4242
- macros:
4343
#include_dir: examples
4444
j2_line_comment_prefix: "#$"
45+
- mermaid2
4546
- blog:
4647
# NOTE: configuration options can be found at
4748
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-a-blog/
@@ -58,7 +59,11 @@ markdown_extensions:
5859
- pymdownx.details
5960
- pymdownx.highlight
6061
- pymdownx.inlinehilite
61-
- pymdownx.superfences
62+
- pymdownx.superfences:
63+
custom_fences:
64+
- name: mermaid
65+
class: mermaid
66+
format: !!python/name:mermaid2.fence_mermaid_custom
6267
- pymdownx.snippets:
6368
base_path: site-src
6469
check_paths: true

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ mkdocs-awesome-pages-plugin
1010
mkdocs-macros-plugin
1111
mkdocs-material
1212
mkdocs-material-extensions
13+
mkdocs-mermaid2-plugin
1314
mike
1415
pep562
1516
Pygments

0 commit comments

Comments
 (0)