Coder Social home page Coder Social logo

orlowang / mermaid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mermaid-js/mermaid

0.0 2.0 0.0 28.41 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 82.09% CSS 4.88% HTML 12.83% Shell 0.20%

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
                
classDiagram
    Class01 <|-- AveryLongClass : Cool
    Class03 *-- Class04
    Class05 o-- Class06
    Class07 .. Class08
    Class09 --> C2 : Where am i?
    Class09 --* C3
    Class09 --|> Class07
    Class07 : equals()
    Class07 : Object[] elementData
    Class01 : size()
    Class01 : int chimp
    Class01 : int gorilla
    Class08 <--> C2: Cool label
                
            
Example 3

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 raghur avatar bjowes avatar gibson042 avatar ciekawy avatar spect88 avatar fardog avatar bollwyvl avatar hustlion avatar larryklugerds avatar ymgch avatar tylerlong avatar joshuacolvin avatar jmuccigr avatar crodriguez1a avatar gillesdemey avatar phairow avatar vijay40 avatar sinedied avatar larkinscott avatar jbronson-sf avatar ggpasqualino avatar ashsearle avatar markdalgleish avatar ma-zal avatar mgaitan avatar maxarturo avatar skywinder avatar bfriedz avatar swhgoon avatar

Watchers

James Cloos avatar Orlo Wang 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.