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 "">\n\n\n\n\nfoo\n\n\nIdea\n\nIdea\n\n\ntap tap tap\n\ntap tap tap\n\n\nIdea->tap tap tap\n\n\n\n\nCode\n\nCode\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