Giter Site home page Giter Site logo

oohtj / mermaid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mermaid-js/mermaid

0.0 1.0 0.0 25.97 MB

Generation of diagram and flowchart from text in a similar manner as markdown

Home Page: http://knsv.github.io/mermaid/

License: MIT License

JavaScript 98.17% CSS 0.67% HTML 1.14% Shell 0.02%

mermaid's Introduction

mermaid Build Status Code Climate

Join the chat at https://gitter.im/knsv/mermaid

Generation of diagrams and flowcharts from text in a similar manner as markdown.

Ever wanted to simplify documentation and avoid heavy tools like Visio when explaining your code?

This is why mermaid was born, a simple markdown-like script language for generating charts from text via javascript.

The code below would render the following image

CodeRendered diagram

graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;

Example 1

sequenceDiagram
    participant Alice
    participant Bob
    Alice->>John: Hello John, how are you?
    loop Healthcheck
        John->>John: Fight against hypochondria
    end
    Note right of John: Rational thoughts <br/>prevail...
    John-->>Alice: Great!
    John->>Bob: How about you?
    Bob-->>John: Jolly good!

Example 2

Further reading

Credits

Many thanks to the d3 and dagre-d3 projects for providing the graphical layout and drawing libraries! Thanks also to the js-sequence-diagram project for usage of the grammar for the sequence diagrams. Thanks to Jessica Peter for inspiration and starting point for gantt rendering.

Mermaid was created by Knut Sveidqvist for easier documentation.

Knut has not done all work by him self, here is the full list of the projects contributors.

mermaid's People

Contributors

knsv avatar bjowes avatar gibson042 avatar spect88 avatar fardog avatar bollwyvl avatar larryklugerds avatar tylerlong avatar vijay40 avatar phairow avatar gillesdemey avatar r-a-v-a-s avatar it0a avatar gkchic avatar codebeige avatar gitter-badger avatar raghur avatar skywinder avatar ma-zal avatar markdalgleish avatar kkirsche avatar jasonbellamy avatar imanimalxi avatar guyellis avatar dbrans avatar sublimino avatar alvynmcq avatar

Watchers

oohtj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.