DEV Community

Vincent Villaluna
Vincent Villaluna

Posted on • Edited on

5 2

Github README with diagram using mermaid

Want to add diagrams in your github .md files to tell the flow of your system or the flow of each component talking to each other ? Today I just found something useful worth to share and lets just dive in with this simple example.

Flowchart

    ```

mermaid
        flowchart TD;

        A[Process] --> B{Condition?};
        B -- Yes --> C[Another Process];
        B -- No --> D[Exit Process];
        C ----> E{Another Condition?};
        E -- Yes --> F[Etc...];
        E -- No --> G[Etc...];


    ```
Enter fullscreen mode Exit fullscreen mode

Each Letters before nodes represents as their id's so when you call A ----> B means node A will point to node B.

Output:

github

To know more about other use cases their are plenty of examples here Mermaid Documentation
Other sources github-blog

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more