1.0.7 • Published 8 months ago

gitbook-plugin-sequence v1.0.7

Weekly downloads
3
License
MIT
Repository
github
Last release
8 months ago

gitbook-plugin-sequence

Build Status Coverage Status NPM Version NPM Downloads

js-sequence-diagrams plugin for Honkit and GitBook.

Installation

npm install gitbook-plugin-sequence

Add this plugin into book.json.

{
  "plugins": ["sequence"]
}

Features

  • Support HTML, PDF, EPUB output(make sure your gitbook support SVG)
  • Support `flow code block quote
  • Multi code style support

Configuration

The default config is "theme": "simple".

book.json add the js-sequence-diagrams options

"pluginsConfig": {
  "sequence": {
    "theme": "simple"
  }
}

Usage

To include a sequence diagram, just wrap your definition in a "sequence" code block. For example:

Also you can 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 %}

Extend the width

{% sequence width=770 %}

Thanks

This project learn from:

See also

These plugins are also available on honkit.

PluginDescription
gitbook-plugin-umlA plug-in that use plantuml to draw beautiful pictures
gitbook-plugin-wavedromA plug-in that can draw waveforms and register tables
gitbook-plugin-sequenceA plug-in that can draw sequence diagrams
gitbook-plugin-flowA plug-in that can draw flowchart.js diagrams
gitbook-plugin-echartsA plug-in that can draw various charts such as bar charts and pie charts
1.0.7

8 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago