js-sequence-diagrams plugin for GitBook
$ npm install gitbook-plugin-sequence-diagrams
book.json add the plugin
{
"plugins": ["sequence-diagrams"]
}
book.json add the js-sequence-diagrams options
"pluginsConfig": {
"sequence-diagrams": {
"theme": "simple"
}
}
put in your book block as
{% sequence %}
Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks!
{% endsequence %}
{% sequence width=770 %}