From 1869bf6f8eca33e6cf9222f98ffb476a49629860 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Thu, 16 Nov 2023 18:04:00 -0600 Subject: Tidy up posts --- _i18n/en/_posts/2017-12-08-mermaid-example.md | 75 --------------------------- 1 file changed, 75 deletions(-) delete mode 100644 _i18n/en/_posts/2017-12-08-mermaid-example.md (limited to '_i18n/en/_posts/2017-12-08-mermaid-example.md') diff --git a/_i18n/en/_posts/2017-12-08-mermaid-example.md b/_i18n/en/_posts/2017-12-08-mermaid-example.md deleted file mode 100644 index 4b07680..0000000 --- a/_i18n/en/_posts/2017-12-08-mermaid-example.md +++ /dev/null @@ -1,75 +0,0 @@ ---- -layout: post -title: Mermaid example -categories: example -tags: [mermaid] ---- - -### 1. Pie chart - -```mermaid! -pie title Pets adopted by volunteers - "Dogs" : 386 - "Cats" : 85 - "Rats" : 35 -``` - -### 2. sequence diagram - -@startmermaid -sequenceDiagram - Alice ->> Bob: Hello Bob, how are you? - Bob-->>John: How about you John? - Bob--x Alice: I am good thanks! - Bob-x John: I am good thanks! - Note right of John: Bob thinks a long
long time, so long
that the text does
not fit on a row. - - Bob-->Alice: Checking with John... - Alice->John: Yes... John, how are you? -@endmermaid - -```mermaid! -graph TD -A[Christmas] -->|Get money| B(Go shopping) - B --> C{Let me think} - C -->|One| D[Laptop] - C -->|Two| E[iPhone] - C -->|Three| F[fa:fa-car Car] -``` - -### 3. Class diagram -```mermaid! -classDiagram -Animal <|-- Duck -Animal <|-- Fish -Animal <|-- Zebra -Animal : +int age -Animal : +String gender -Animal: +isMammal() -Animal: +mate() -class Duck{ - +String beakColor - +swim() - +quack() -} -class Fish{ - -int sizeInFeet - -canEat() -} -class Zebra{ - +bool is_wild - +run() -} -``` - -### 4. State diagram -```mermaid! -stateDiagram -[*] --> Still -Still --> [*] - -Still --> Moving -Moving --> Still -Moving --> Crash -Crash --> [*] -``` -- cgit v1.2.3