Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
22,167 additions
and
13,299 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Mermaid | ||
|
||
Mermaid 可让您使用文本和代码创建图表和可视化效果。 | ||
|
||
![](./images/2021-11-01-14-23-07.png) | ||
|
||
具体使用可参考 [Mermaid-js](https://mermaid-js.github.io/mermaid/#/) | ||
|
||
## 例子 | ||
|
||
### Demo1 | ||
|
||
```mermaid | ||
flowchart TD | ||
A[Start] --> B{Is it?}; | ||
B -->|Yes| C[OK]; | ||
C --> D[Rethink]; | ||
D --> B; | ||
B ---->|No| E[End]; | ||
``` | ||
|
||
```mermaid | ||
flowchart TD | ||
A[Start] --> B{Is it?}; | ||
B -->|Yes| C[OK]; | ||
C --> D[Rethink]; | ||
D --> B; | ||
B ---->|No| E[End]; | ||
``` | ||
|
||
### Demo2 | ||
|
||
```mermaid | ||
journey | ||
title My working day | ||
section Go to work | ||
Make tea: 5: Me | ||
Go upstairs: 3: Me | ||
Do work: 1: Me, Cat | ||
section Go home | ||
Go downstairs: 5: Me | ||
Sit down: 5: Me | ||
``` | ||
|
||
```mermaid | ||
journey | ||
title My working day | ||
section Go to work | ||
Make tea: 5: Me | ||
Go upstairs: 3: Me | ||
Do work: 1: Me, Cat | ||
section Go home | ||
Go downstairs: 5: Me | ||
Sit down: 5: Me | ||
``` | ||
|
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.