Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvjeantet <valere.jeantet@gmail.com>2020-09-28 22:47:36 +0300
committervjeantet <valere.jeantet@gmail.com>2020-09-28 22:47:36 +0300
commit1e3005d7c6b1d15a5639cc7136134a6f06ec6791 (patch)
treef914fc19285c7f428abac399df81244bd3dbf731 /exampleSite
parent4453807057b28bfd668be5cc7e469e8c6b67311f (diff)
shortcode mermaid : state diagram supported (mermaid updated to v8.8.0)
fix #22
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/content/shortcodes/mermaid/_index.md28
1 files changed, 27 insertions, 1 deletions
diff --git a/exampleSite/content/shortcodes/mermaid/_index.md b/exampleSite/content/shortcodes/mermaid/_index.md
index a106d0c..6a1826e 100644
--- a/exampleSite/content/shortcodes/mermaid/_index.md
+++ b/exampleSite/content/shortcodes/mermaid/_index.md
@@ -4,6 +4,8 @@ description: Mermaid is a tool that generates diagrams and charts, from markdown
title: mermaid
---
+
+
## Flowchart example
{{%expand "Show code ..."%}}
```
@@ -159,5 +161,29 @@ gantt
Add to mermaid :1d
{{</mermaid>}}
-
+## State Diagram
+{{%expand "Show code ..."%}}
+```
+ {{</*mermaid*/>}}
+ stateDiagram-v2
+ [*] --> Still
+ Still --> [*]
+
+ Still --> Moving
+ Moving --> Still
+ Moving --> Crash
+ Crash --> [*]
+ {{</* /mermaid */>}}
+```
+{{%/expand%}}
+{{<mermaid align="left">}}
+stateDiagram-v2
+ [*] --> Still
+ Still --> [*]
+
+ Still --> Moving
+ Moving --> Still
+ Moving --> Crash
+ Crash --> [*]
+{{</mermaid>}}