gitbook-plugin-websequencediagrams

GitBook plugin to render diagrams from websequencediagrams.com

Usage no npm install needed!

<script type="module">
  import gitbookPluginWebsequencediagrams from 'https://cdn.skypack.dev/gitbook-plugin-websequencediagrams';
</script>

README

websequencediagrams.com integration for GitBook

1. You can use install it via NPM and save it to package.json:

$ npm install gitbook-plugin-websequencediagrams --save

2. add the plugin to book.json config

{
    "plugins": [ "websequencediagrams"]
}

3. paste websequencediagrams.com text into your book, for example:

{% websd style="rose" %}
title Authentication Sequence

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

The style parameter is optional, and defaults to "default" if not set