Graphviz support for GitBook
Based on vowstar/gitbook-plugin-uml and viz.js.
```graphviz
digraph G {
A -> B -> C;
}
```
Alternative format:
{ %graphviz% }
digraph G {
A -> B -> C;
}
{ %endgraphviz% }
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 . |