Graphviz extension for docutils
Project description
===============================
Graphviz extension for Docutils
===============================
A Docutils extension that replaces inline Graphviz definitins with inline SVGs or PNGs!
refer: https://github.com/sprin/markdown-inline-graphviz
Install `Graphviz <https://www.graphviz.org/>`_ first! The command "dot" should be in system PATH.
register::
import docutils_graphviz
from docutils.parsers.rst import directives
directives.register_directive('dot', docutils_graphviz.Graphviz)
example:
.. dot:: svg
:widht: 100%
:height: 100%
:alt: image.svg
digraph G {
node[fontname="simsun"]
edge[fontname="simsun"]
rankdir=LR
Earth [peripheries=2]
Mars
Earth -> Mars
}
Graphviz extension for Docutils
===============================
A Docutils extension that replaces inline Graphviz definitins with inline SVGs or PNGs!
refer: https://github.com/sprin/markdown-inline-graphviz
Install `Graphviz <https://www.graphviz.org/>`_ first! The command "dot" should be in system PATH.
register::
import docutils_graphviz
from docutils.parsers.rst import directives
directives.register_directive('dot', docutils_graphviz.Graphviz)
example:
.. dot:: svg
:widht: 100%
:height: 100%
:alt: image.svg
digraph G {
node[fontname="simsun"]
edge[fontname="simsun"]
rankdir=LR
Earth [peripheries=2]
Mars
Earth -> Mars
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for python-docutils-graphviz-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee141cc12f104fac966373eb3b087a8b97718148d71425b567734133ed033653 |
|
MD5 | b7b753f19fc3cc3656fe324950d53803 |
|
BLAKE2b-256 | 1ac57d5cee2cb2914f1975044b3eca7037198f287875a1946c2c49de1eabf33d |