Inserting js-sequence diagrams in MkDocs
Steps
- Install MkDocs and PyMDown Extensions.
- Create an MkDocs project.
- Add a javascript file to parse the js-sequence-diagrams syntax in the markdown.
- Edit mkdocs.yml.
- Edit your markdown file and build your docs.
Detailed tutorial written on Medium.
Sample sequence diagram
Here is a Hello World example.
Title: Hello World
Bob->Alice: Hello
Alice-->Bob: How are you?
Note left of Bob: Bob thinks
Bob->>Alice: I'm good, thanks! How about you?
Alice-->Bob: I'm doing great, thank you!