Simple Ditaa builder for sphinx, for python 3.
Sphinx Ditaa requires Python 3.5, native dependency Ditaa and python packages.
- Install native dependency, installation depends on your OS and/or your distribution, example for Debian:
sudo apt-get install ditaa
sudo apt-get install python3
sudo apt-get install python3-pipsudo pip3 install sphinx- Install Sphinx contribution:
pip3 install .Add sphinxcontrib.ditaa to the extensions list in conf.py:
extensions = [
... other extensions here ...
'sphinxcontrib.ditaa'
]ditaa = 'ditaa' # ditaa command
ditaa_args = '' # custom ditaa argsWrite ditaa code in rst documentation:
.. ditaa::
+--------+ +-------+ +-------+
| | --+ ditaa +--> | |
| Text | +-------+ |diagram|
|Document| |!magic!| | |
| {d}| | | | |
+---+----+ +-------+ +-------+
: ^
| Lots of work |
+-------------------------+