Skip to content

Instantly share code, notes, and snippets.

@esle
esle / dot.py
Created February 20, 2012 06:08
dot directive for reStructuredText, with this you can write ..dot:: things
"""
dot directive (require graphviz)
"""
from docutils import nodes
from docutils.parsers.rst import directives, Directive
import subprocess as sp
nthUnnamed = 0