Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 991 Bytes

README.md

File metadata and controls

46 lines (35 loc) · 991 Bytes

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.