1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 17:56:53 +02:00

add mermaid-cli

This commit is contained in:
kev 2024-04-10 11:26:37 +08:00
parent 4c2ee8d639
commit bfe9d95e05
2 changed files with 41 additions and 0 deletions

View File

@ -407,6 +407,7 @@ A collection of delicious docker recipes.
- [x] memgraph
- [x] memgraph-mage
- [x] memgraph-platform
- [x] minlag/mermaid-cli
- [x] metabase/metabase
- [x] metasploitframework/metasploit-framework :skull:
- [x] minio/minio

40
mermaid-cli/README.md Normal file
View File

@ -0,0 +1,40 @@
mermaid-cli
===========
[Mermaid][1] is a JavaScript-based diagramming and charting tool that uses
Markdown-inspired text definitions and a renderer to create and modify complex
diagrams. The main purpose of Mermaid is to help documentation catch up with
development.
## Tutorial
```
flowchart LR
A[Hard] -->|Text| B(Round)
B --> C{Decision}
C -->|One| D[Result 1]
C -->|Two| E[Result 2]
```
```mermaid
flowchart LR
A[Hard] -->|Text| B(Round)
B --> C{Decision}
C -->|One| D[Result 1]
C -->|Two| E[Result 2]
```
```bash
# Create an alias
$ alias mermaid-cli='docker run --rm -u $(id -u):$(id -g) -v $PWD:/data minlag/mermaid-cli'
# Make config file
$ cat input.mmd
# Generate an SVG
$ mermaid-cli -i input.mmd -o output.svg -t dark -b transparent
```
[1]: https://github.com/mermaid-js/mermaid