|
|
@@ -290,3 +290,74 @@ packetdiag {
|
|
|
:::
|
|
|
|
|
|
</div>
|
|
|
+
|
|
|
+# :pencil: Mermaid
|
|
|
+
|
|
|
+## Pie chart diagram
|
|
|
+
|
|
|
+```mermaid
|
|
|
+%%{init: {"pie": {"textPosition": 0.5}, "themeVariables": {"pieOuterStrokeWidth": "5px"}} }%%
|
|
|
+pie showData
|
|
|
+ title Key elements in Product X
|
|
|
+ "Calcium" : 42.96
|
|
|
+ "Potassium" : 50.05
|
|
|
+ "Magnesium" : 10.01
|
|
|
+ "Iron" : 5
|
|
|
+```
|
|
|
+
|
|
|
+## Gantt diagram
|
|
|
+
|
|
|
+```mermaid
|
|
|
+gantt
|
|
|
+ title A Gantt Diagram
|
|
|
+ dateFormat YYYY-MM-DD
|
|
|
+ section Section
|
|
|
+ A task :a1, 2014-01-01, 30d
|
|
|
+ Another task :after a1 , 20d
|
|
|
+ section Another
|
|
|
+ Task in sec :2014-01-12 , 12d
|
|
|
+ another task : 24d
|
|
|
+```
|
|
|
+
|
|
|
+## Gitgraph diagram
|
|
|
+
|
|
|
+```mermaid
|
|
|
+%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'rotateCommitLabel': true}} }%%
|
|
|
+gitGraph
|
|
|
+ commit id: "feat(api): ..."
|
|
|
+ commit id: "a"
|
|
|
+ commit id: "b"
|
|
|
+ commit id: "fix(client): .extra long label.."
|
|
|
+ branch c2
|
|
|
+ commit id: "feat(modules): ..."
|
|
|
+ commit id: "test(client): ..."
|
|
|
+ checkout main
|
|
|
+ commit id: "fix(api): ..."
|
|
|
+ commit id: "ci: ..."
|
|
|
+ branch b1
|
|
|
+ commit
|
|
|
+ branch b2
|
|
|
+ commit
|
|
|
+```
|
|
|
+
|
|
|
+## Mindmap diagram
|
|
|
+
|
|
|
+```mermaid
|
|
|
+mindmap
|
|
|
+ root((mindmap))
|
|
|
+ Origins
|
|
|
+ Long history
|
|
|
+ ::icon(fa fa-book)
|
|
|
+ Popularisation
|
|
|
+ British popular psychology author Tony Buzan
|
|
|
+ Research
|
|
|
+ On effectiveness<br/>and features
|
|
|
+ On Automatic creation
|
|
|
+ Uses
|
|
|
+ Creative techniques
|
|
|
+ Strategic planning
|
|
|
+ Argument mapping
|
|
|
+ Tools
|
|
|
+ Pen and paper
|
|
|
+ Mermaid
|
|
|
+```
|