Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
Go to file
Bernard Vander Beken 345d460643 Fix spelling 2017-01-04 11:19:14 +01:00
bin New release 2016-05-29 19:18:04 +02:00
dist Fix for issue #311, mermaid will clear div used for rendering initially in the redner function. 2016-12-14 12:41:22 +01:00
docs Fix spelling 2017-01-04 11:19:14 +01:00
editor Add build with new ellipse syntax 2015-10-26 23:03:07 +00:00
gulp New release 2016-05-29 19:18:04 +02:00
lib fix cli css style selector text lowercase problem by setting svg style content to commandline css content, if available -- this overwrites cloneCssStyles 2017-01-01 22:47:09 -05:00
scripts New release 2016-05-29 19:18:04 +02:00
spec/support Modernization of build environment, better linting, adjustment after stricter static rules, cleanup of package.json 2015-10-17 12:46:36 +02:00
src Update d3.js 2016-12-20 01:45:23 +08:00
test remove dups 2017-01-01 23:41:38 -05:00
.codeclimate.yml Update .codeclimate.yml 2016-12-19 13:07:43 +01:00
.eslintignore Modernization of build environment, better linting, adjustment after stricter static rules, cleanup of package.json 2015-10-17 12:46:36 +02:00
.eslintrc fix eslintrc so eslint doesn't barf - duplicated keys 2016-04-25 16:35:20 +05:30
.gitattributes Fix for issue windows builds as described in #284 2016-01-26 18:03:58 +01:00
.gitignore add tests 2016-12-18 22:52:41 -05:00
.travis.yml Added LTS and current STABLE versions of nodejs to Travis test matrix. 2016-03-29 14:16:25 +01:00
CHANGELOG.md Fix for defect #158 2015-04-20 21:22:05 +02:00
CONTRIBUTING.md #296 Further edit of build instructions 2016-02-10 09:10:15 +02:00
LICENSE Initial commit 2014-11-02 00:52:32 +01:00
README.md reindent loop 2016-07-27 19:57:50 +08:00
bower.json Remove moot `version` property from bower.json 2015-06-10 18:51:14 -04:00
gulpfile.js Render function as mentioned in issue #146, only works in browser context 2015-05-26 20:41:53 +02:00
karma.conf.js first couple of tests for the half baked parser 2016-04-25 11:35:44 +05:30
package.json add more tests in cli_test-samples: flowchart, sequence, gantt, gitgraph, load html in phantomjs and save screenshot png 2017-01-01 22:47:09 -05:00

README.md

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.