I created a graphviz plugin for Octopress/Jekyll today. For example:
{% graphviz %}
digraph G {
compound=true;
subgraph cluster0 {
a -> b;
a -> c;
b -> d;
c -> d;
}
subgraph cluster1 {
e -> g;
e -> f;
}
b -> f [lhead=cluster1];
d -> e;
c -> g [ltail=cluster0, lhead=cluster1];
c -> e [ltail=cluster0];
d -> h;
}
{% endgraphviz %}
will produce:
You can see how it works on real post:
Installation:
- Download the file from here.
- Put it into your
my_octopress/plugin
folder. - Add one line
source/images/graphviz
into your.gitignore
file
Remeber that you should have graphviz installed in your system. Else it will raise an error.