mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
To support subsutituion syntax, make graphviz node inline (ref: #1149). Now graphviz directive behaves like ``image`` directive when no captions. If specified, it generates ``figure`` node and ``caption`` node like ``figure`` directive.
14 lines
160 B
ReStructuredText
14 lines
160 B
ReStructuredText
graphviz
|
|
========
|
|
|
|
.. digraph:: foo
|
|
:caption: caption of graph
|
|
|
|
bar -> baz
|
|
|
|
.. |graph| digraph:: bar
|
|
|
|
bar -> baz
|
|
|
|
Hello |graph| graphviz world
|