A Liquid Tag for Jekyll to to embed a web sequence diagram from websequencediagrams.com
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
default.png
jekyll-wsd-tag.rb
rose.png

README.md

jekyll-wsd-tag is a Jekyll plugin to embed a web sequence diagram using the script provided by websequencediagrams.com

Requirements

Jekyll

Installation

Add jekyll-wsd-tag.rb to the _plugins directory of your Jekyll site.

Usage

{% wsg %}
diagram source text
{% endwsg %}

Alternatively you can provide a parameter to change the style of the diagram

{% wsg *wsd_style* %}
diagram source text
{% endwsg %}

Where wsd_style is one of:

  • default
  • earth
  • modern-blue
  • mscgen
  • omegapple
  • qsd
  • rose
  • roundgreen
  • napkin

Example

{% wsg %}  
title Authentication Sequence  

Alice->Bob: Authentication Request  
note right of Bob: Bob thinks about it  
Bob->Alice: Authentication Response  
{% endwsg %}

Result:

with wsd_style parameter

{% wsg rose %}  
title Authentication Sequence  

Alice->Bob: Authentication Request  
note right of Bob: Bob thinks about it  
Bob->Alice: Authentication Response  
{% endwsg %}  

Result:

License

License