summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-ext-graphviz/index.rst
blob: cb0f06936f7cc0170288efbb13e7e2b8e45beb96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
graphviz
========

.. digraph:: foo
   :caption: caption of graph

   bar -> baz

.. |graph| digraph:: bar

           bar -> baz

Hello |graph| graphviz world

.. digraph:: foo
   :graphviz_dot: neato
   :class: neato_graph

   baz -> qux


.. graphviz:: graph.dot

.. digraph:: bar
   :align: right
   :caption: on *right*

   foo -> bar

.. digraph:: foo
   :align: center

   centered

.. graphviz::
   :align: center

   digraph test {
     foo [label="foo", URL="#graphviz", target="_parent"]
     bar [label="bar", image="./_static/images/test.svg"]
     baz [label="baz", URL="./_static/images/test.svg"]
     foo -> bar -> baz
   }