sphinx.ext.graphviz¶
See https://www.sphinx-doc.org/en/master/usage/extensions/graphviz.html
Example: graphviz plus options¶
Additionally option :layout:
can be used with one of the Graphviz layouts as
value, as there are: dot neato fdp sfdp twopi circo.
Source:
.. graphviz::
:alt: alternative text
:align: center
:caption: caption of the graph
:name: this is a label
digraph foo {
"bar" -> "baz";
}
Result:
Example with link in svg¶
Source:
.. graphviz::
digraph example {
a [label="sphinx", href="http://sphinx-doc.org", target="_top"];
b [label="other"];
a -> b;
}
Result: