summaryrefslogtreecommitdiff
path: root/_i18n/es/_posts/2017-12-08-mermaid-example.md
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-10-25 20:37:27 -0600
committerHombreLaser <sebastian-440@live.com>2023-10-25 20:37:27 -0600
commit04d8c1c578ec57a7d154e5285b3fe216c4fe2d7f (patch)
treec8171bdd7ac68a84a2322d46b05d70a77d36f62d /_i18n/es/_posts/2017-12-08-mermaid-example.md
parentaae8d0946ec49676aba0ae5e6effa9f4deb57183 (diff)
Add internationalization
Diffstat (limited to '_i18n/es/_posts/2017-12-08-mermaid-example.md')
-rw-r--r--_i18n/es/_posts/2017-12-08-mermaid-example.md75
1 files changed, 75 insertions, 0 deletions
diff --git a/_i18n/es/_posts/2017-12-08-mermaid-example.md b/_i18n/es/_posts/2017-12-08-mermaid-example.md
new file mode 100644
index 0000000..4b07680
--- /dev/null
+++ b/_i18n/es/_posts/2017-12-08-mermaid-example.md
@@ -0,0 +1,75 @@
+---
+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<br/>long time, so long<br/>that the text does<br/>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 --> [*]
+```