Jump to ratings and reviews
Rate this book

The Official Guide to Mermaid.js: Create complex diagrams and beautiful flowcharts easily using text and code

Rate this book
Get up to speed with using Mermaid diagrams to facilitate a seamless development workflow with the help of real-world examples and expert tips from the creators of the tool

Key FeaturesLearn how to use and customize the different diagram types in MermaidDiscover examples of how to add Mermaid to a documentation systemUse Mermaid with various tools available such as editors, wiki, and moreBook DescriptionMermaid is a JavaScript-based charting and diagramming tool that lets you represent diagrams using text and code, which simplifies the maintenance of complex diagrams. This is a great option for developers as they're more familiar with code, rather than using special tools for generating diagrams. Besides, diagrams in code simplify maintenance and ensure that the code is supported by version control systems. In some cases, Mermaid makes refactoring support for name changes possible while also enabling team collaboration for review distribution and updates.

Developers working with any system will be able to put their knowledge to work with this practical guide to using Mermaid for documentation. The book is also a great reference for looking up the syntax for specific diagrams when authoring diagrams.

You'll start by learning the importance of accurate and visual documentation. Next, the book introduces Mermaid and establishes how to use it to create effective documentation. By using different tools, editors, or a custom documentation platform, you'll also understand how to use Mermaid syntax for various diagrams. Later chapters cover advanced configuration settings and theme options to manipulate your diagram as per your needs.

By the end of this book, you'll be well-versed with Mermaid diagrams and how they can be used in your workflows.

What you will learnUnderstand good and bad documentation, and the art of effective documentationBecome well-versed with maintaining complex diagrams with easeDiscover how to draw different types of Mermaid diagrams such as flowcharts, class diagrams, Gantt charts, and moreImplement Mermaid diagrams in your workflowsUnderstand how to set up themes for a Mermaid diagram or an entire siteGet to grips with setting up a custom documentation systemWho this book is forThis book is for content generators such as technical writers, developers, architects, business analysts, and managers who want to learn effective documentation or how to effectively represent diagrams using simple text code snippets and extract them. Familiarity with documentation using Markdown will be helpful, but not necessary.

Table of ContentsThe Art of Documentation with MermaidHow to Use MermaidMermaid Versions and Using the Live EditorModifying Configurations with or without DirectivesChanging Themes and Making Mermaid Look GoodUsing FlowchartsCreating Sequence DiagramsRendering Class DiagramsIllustrating Data with Pie Charts and Understanding Requirement DiagramsDemonstrating Connections Using Entity Relationship DiagramsRepresenting System Behavior with State DiagramsVisualizing Your Project Schedule with Gantt Chart DiagramsPresenting User Behavior with User Journey Diagrams

492 pages, Kindle Edition

Published September 17, 2021

11 people are currently reading
12 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
1 (16%)
4 stars
3 (50%)
3 stars
2 (33%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 - 2 of 2 reviews
Profile Image for Adam Wan.
17 reviews3 followers
October 25, 2023
TLDR: Directives have deprecate. Please use Configuration.
TLDR2: Good to learn the design philosophy of MermaidJS
TLDR3: You will learn how to use it effectively if you do not want too much customisations yourself.

The book is pretty good if you want to use MermaidJS effectively.
It provides some examples and the design philosophy of the library, e.g. the expected use cases of different themes, what extra configurations you can add to make it nice.

Another good part is for those who are not very familiar with UML, the author also provides the high level overview of how to use the appropriate shapes.
Profile Image for Thomas Hansen.
33 reviews4 followers
December 11, 2022
Good walkthru of Mermaids features and how to use them.
If you read it cover to cover you will find some parts repeated for each diagram type. Great if you jump into just what diagram you need, otherwise just skip those parts.

Would have liked a «troubleshooting» chapter as error messages are often very generic without much context or much to go on (especially when you are starting out with Mermaid)
Displaying 1 - 2 of 2 reviews

Can't find what you're looking for?

Get help and learn more about the design.