gitbook-plugin-dot

1.0.1 • Public • Published

gitbook-plugin-dot

npm

Gitbook plugin for rendering DOT (graph description language) into SVG.

Prerequisite

Gitbook ^3 is required.

You need working dot binary which is included in Graphviz. If you don't have one download & install it first.

Installation

npm install gitbook-plugin-dot

Usage

Insert graph using DOT block:

{% dot %}
graph graphname {
  a -- b -- c;
  b -- d;
}
{% enddot %}

Config

Key Type Default Description
bin string 'dot' A path to the dot binary file
args string[] [] Additional arguments passed to dot command
{
  "plugins": ["dot"],
  "pluginsConfig": {
    "dot": {
      "bin": "/usr/local/bin/dot",
      "args": ["-x"]
    }
  }
}

Package Sidebar

Install

npm i gitbook-plugin-dot

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.25 kB

Total Files

3

Last publish

Collaborators

  • g6123