From 462b04358cdd6e86a3c67d6bdd329e0a540f098a Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Thu, 22 Jun 2023 18:16:44 +0200 Subject: [PATCH] docs: mermaid graphs enabled --- docs/stylesheets/extra.css | 4 ++++ mkdocs.yml | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index bfa15c4c..863d1e57 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -1,3 +1,7 @@ mjx-math { font-size: 85% !important; } + +.mermaid { + text-align: center; +} \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 575276b0..8c7247bc 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -80,7 +80,11 @@ markdown_extensions: pygments_lang_class: true - pymdownx.inlinehilite - pymdownx.snippets - - pymdownx.superfences + - pymdownx.superfences: + custom_fences: + - name: mermaid + class: mermaid + format: !!python/name:pymdownx.superfences.fence_code_format - pymdownx.tabbed: alternate_style: true - pymdownx.tasklist: