Skip to content

Commit

Permalink
fix: mermaid support
Browse files Browse the repository at this point in the history
  • Loading branch information
Pippo98 committed Dec 3, 2023
1 parent f3dddc4 commit 12d8d9e
Show file tree
Hide file tree
Showing 4 changed files with 278 additions and 1,022 deletions.
4 changes: 2 additions & 2 deletions docs/common/about/writing-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ nav:
You can draw diagrams with [mermaid](https://mermaid-js.github.io/mermaid/#/).

````
```diagram
```mermaid
stateDiagram-v2
[*] --> Still
Still --> [*]
Expand All @@ -58,7 +58,7 @@ stateDiagram-v2
```
````

```diagram
```mermaid
stateDiagram-v2
[*] --> Still
Still --> [*]
Expand Down
9 changes: 5 additions & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ theme:
plugins:
- search
- awesome-pages
- mermaid2:
arguments:
theme: dark
- mkdocs-jupyter:
theme: dark

Expand All @@ -31,12 +34,10 @@ markdown_extensions:
emoji_generator: !!python/name:materialx.emoji.to_svg
- pymdownx.superfences:
custom_fences:
- name: diagram
class: mermaid
format: !!python/name:pymdownx.superfences.fence_div_format
- name: mermaid
class: mermaid
class: mermaid-experimental
format: !!python/name:pymdownx.superfences.fence_code_format

- extra
- admonition
- pymdownx.details
Expand Down
Loading

0 comments on commit 12d8d9e

Please sign in to comment.