🧜‍♀️ Mermaid

Mermaid allows you to insert figures and diagrams into your markdown or re-structured text documents.

Usage

  • In Github markdown, you can use mermaid like you would a code block:

Example of Github Markdown
```mermaid

.. code goes here

```
  • In rst files, you can setup mermaid for you sphinx build with this: Python Package

Example using mermaid in sphinx rst file
.. mermaid::

    graph TD
    A --> B
    B -- Label --> C

Examples

Pie chart

Example making a Pie Chart
pie title Pets adopted by volunteers
    "Dogs" : 386
    "Cats" : 85
    "Rats" : 15
pie title Pets adopted by volunteers "Dogs" : 386 "Cats" : 85 "Rats" : 15