Wiki Mermaid Diagrams
Have you ever wanted to create some diagrams to explain the flow or sequence along with you documentation. You can use some tool like Microsoft Visio, export or screen grab the picture then paste it into the wiki. Then when it comes to updating it you have to try and find that Visio file make the change and repeat the export.
In the series of Diagrams in Azure DevOps Wiki I will be showing you how you can put diagrams along side you Wiki documentation. In this post we will be looking at the in built Mermaid Diagrams.
Lets get Started
- Flowcharts
- Sequence
- Gantt Charts
The actual wiki diagram syntax is in the same file as you wiki document. The syntax for the mermaid diagram is surrounded with the notation see below.
|
|
In the preview panel to the right of you text will display the below image. Clicking on Load diagram the mermaid syntax is used to generate the diagram.
Flow Chart Example
|
|
Generate a picture that looks like the below.
Sequence
|
|
Generate a picture that looks like the below.
Gantt Chart
|
|
Generate a picture that looks like the below.
Mermaid Resources
For more information about the Mermaid syntax look at . Be aware not all syntax works for these three types at the moment.
Editors for Mermaid
If you are looking at ways to create the Mermaid diagram there is a live editor at and if you like editing you Wiki in VSCode there is a extension to allow you to edit the Mermaid diagram in VSCode and preview the diagram you can find the extension at .
Please be careful in using these other editors as some of the syntax that is supported by these editor may not be supported by Azure DevOps Mermaid Generator.
Conclusion
This is a good start, hopeful more diagram types will be added.