6d9834b1ea | ||
---|---|---|
Dockerfile | ||
README.md |
README.md
Docker container for mermaid
mermaid is an open source tool for generating diagram and flowchart from text in a similar manner as markdown. This docker image contains mermaid 7.0.0 and is build on top of the official node 8.8.1 image.
fixed versions
usage
docker run --rm -v "$PWD":/data:z felixlohmeier/mermaid
typical workflow
- Create your graph in mermaid's live editor
- Copy & paste your graph config in a text editor and save it to a local file
- Download a stylesheet from https://unpkg.com/mermaid@7.0.13/dist/themes/ (and customize it if you want)
- Run this docker container to create png and svg.
Example
- render both formats (svg + png):
-s -p
- width of the png: 600 pixel:
-w 600
- apply custom stylesheet mermaid.neutral.css from local file
-t mermaid.neutral.css
- name of local file containing graph config:
myflowchart.mmd
docker run --rm -v "$PWD":/data:z felixlohmeier/mermaid -s -p -w 600 -t mermaid.neutral.css myflowchart.mmd