/gitbook-plugin-graphviz

Graphviz support for GitBook

Primary LanguageJavaScriptApache License 2.0Apache-2.0

gitbook-plugin-graphviz

Graphviz support for GitBook

Build Status

Based on vowstar/gitbook-plugin-uml and viz.js.

Usage

```graphviz
digraph G {
	A -> B -> C;
}
```

Alternative format:

{ %graphviz% }
digraph G {
	A -> B -> C;
}
{ %endgraphviz% }

Configuration

Configure the plugin in book.json.

"plugins": [
      "graphviz@git+https://github.com/darvasd/gitbook-plugin-graphviz.git"
  ],
"pluginsConfig": {
    "graphviz": {
        "format": "svg",
        "engine": "dot"
    }
}
Variable Description
format Output format. Can be: svg, xdot, plain, json.
engine Graphviz engine to be used. Can be: doz, circo, neato, osage, twopi.