A Jekyll plugin to simplify the creation of mermaid diagrams and flowcharts in your posts and pages.
- Install the gem:
gem install jekyll-mermaid
- Add the gem to your Jekyll
_config.yml
:
gems: [jekyll-mermaid]
Please see the Jekyll documentation for more installation options.
You'll need to update your _config.yml
with the location of the mermaid source javascript file you want to use.
mermaid:
src: 'path/to/mermaid.js'
Simply include the jekyll-mermaid block helper in any of your templates.
{% mermaid %}
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
{% endmermaid %}
Please see the mermaid documentation for more examples.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.
Copyright (c) 2014 Jason Bellamy Licensed under the MIT license.