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
File details
Details for the file python-docutils-graphviz-1.0.3.tar.gz
.
File metadata
- Download URL: python-docutils-graphviz-1.0.3.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/20.7.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee141cc12f104fac966373eb3b087a8b97718148d71425b567734133ed033653 |
|
MD5 | b7b753f19fc3cc3656fe324950d53803 |
|
BLAKE2b-256 | 1ac57d5cee2cb2914f1975044b3eca7037198f287875a1946c2c49de1eabf33d |