Skip to main content
===============================
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
}

Release files for python-docutils-graphviz 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-docutils-graphviz 1.0.3
File Size Uploaded
python-docutils-graphviz-1.0.3.tar.gz 2.3 kB Details

Release files / python-docutils-graphviz-1.0.3.tar.gz

Download URL python-docutils-graphviz-1.0.3.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ee141cc12f104fac966373eb3b087a8b97718148d71425b567734133ed033653
BLAKE2b-256 checksum
How to use checksums
1ac57d5cee2cb2914f1975044b3eca7037198f287875a1946c2c49de1eabf33d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.3 This release

1 release file

1.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page