Skip to content

Commit 8097e61

Browse files
authored
docs: add mermaid plugin for mkdocs (#263)
Signed-off-by: ktro2828 <kotaro.uetake@tier4.jp>
1 parent a62b4b3 commit 8097e61

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ repos:
1010
- id: check-toml
1111
- id: check-xml
1212
- id: check-yaml
13+
exclude: ^mkdocs\.yaml$
1314
- id: detect-private-key
1415
- id: end-of-file-fixer
1516
- id: mixed-line-ending

mkdocs.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ theme:
5151

5252
plugins:
5353
- search
54+
- mermaid2
5455
- mike:
5556
version_selector: true
5657
canonical_version: latest
@@ -94,7 +95,12 @@ markdown_extensions:
9495
pygments_lang_class: true
9596
- pymdownx.inlinehilite
9697
- pymdownx.snippets
97-
- pymdownx.superfences
98+
- pymdownx.superfences:
99+
custom_fences:
100+
- name: mermaid
101+
class: mermaid
102+
format: !!python/name:mermaid2.fence_mermaid_custom
103+
98104
- pymdownx.details
99105
- admonition
100106

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ dev = [
3535
"mkdocstrings[python]>=0.18",
3636
"ruff>=0.8",
3737
"mike>=2.1.3",
38+
"mkdocs-mermaid2-plugin>=1.2.3",
3839
]
3940

4041
[project.scripts]

0 commit comments

Comments
 (0)