Adding SVG support to Sphinx’s Graphviz extension

Sphinx has a few built-in extensions to take your documentation one step further. Among all, I’ve been finding the Graphviz extension very useful. It enables the use of DOT language to describe a graph that will be converted into a PNG image by Graphviz.

For some reason, the Graphviz version installed on my Mac is generating corrupted PNG files. Fortunately, it supports many other formats including SVG which has the greatest results. Continue Reading…