jk / jekyll-mermaid-blog

A blog that uses jekyll and mermaid for diagrams

Home Page:http://quickinsights.io/apache/spark/apache-spark-redshift/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jekyll-mermaid-blog

A Jekyll blog integrated with the mermaid library for diagrams and flowcharts in your posts and pages.

Installation

  1. Install Jekyll
  2. Download repository

Please see the Jekyll documentation for more installation options.

Config

The mermaid javascript files are sourced through _config.yml.

mermaid:
  src: '/js/mermaid.js'
  src_config: '/js/mermaid_config.js'

Publish the jekyll blog is done through the RakeFile so you will need to update the GITHUB_REPONAME.

Usage

Running the jekyll site locally by executing jekyll serve.

jekyll serve

The website can be published by executing a rake command.

rake publish

For working with mermaid diagrams, 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.

Demo

For a working example, check out the blog post as well the source code.

About

A blog that uses jekyll and mermaid for diagrams

http://quickinsights.io/apache/spark/apache-spark-redshift/

License:MIT License


Languages

Language:JavaScript 95.1%Language:CSS 3.2%Language:HTML 1.3%Language:Ruby 0.2%Language:Python 0.1%