2013-09-27 14:33

Lunchtime Nikola Feature: graphviz

Since we are in the process of adding a plugin repo for Nikola, I wanted to add a simple plugin there so that we can show how it works.

So here it is. You use this:

.. graphviz::

   digraph foo {
       "Idea" -> "tap tap tap" -> "Code";

And you get (assuming graphviz is installed, and this plugin is installed, etc.) this:

b'\nn "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n\n\n\n\nfoo\n\n\n\nIdea\n\nIdea\n\n\n\ntap tap tap\n\ntap tap tap\n\n\n\nIdea->tap tap tap\n\n\n\n\n\nCode\n\nCode\n\n\n\ntap tap tap->Code\n\n\n\n\n\n'

It's still very rudimentary, but it aims to be compatible with Sphinx's implementation even though the details of how it's done vary greatly.


Comments powered by Disqus

Contents © 2000-2019 Roberto Alsina