an extension for sphinx to render plantuml in sphinx documents
Project description
sphinx-plantuml 
introduction
sphinx-plantuml can render PlantUML figure in your Sphinx document without any dependencies in an instant
installation
you can install sphinx-plantuml by pip.
python3 -m pip install sphinx-plantuml
setup
please add sphinxcontrib.plantuml into your conf.py file.
extensions = [
'sphinxcontrib.plantuml',
]
usage
you can use the following code to insert a figure into your document.
.. plantuml::
@startuml
Alice -> Bob: test
@enduml
sphinx-plantuml renders the figure in .svg format, if you want .png format, you can use :format: argument.
.. plantuml::
:format: png
@startuml
Alice -> Bob: test
@enduml
if you want add a caption, you can use :caption: argument.
.. plantuml::
:caption: this is caption
@startuml
Alice -> Bob: test
@enduml
sphinx-plantuml directive can load PlantUML code from file.
.. plantuml:: /the/path/of/file.uml
:caption: this is caption
sphinx-plantuml directive supports almost all arguments of sphinx builtin figure directive. for example, you can use :align: argument to control the layout of the figure.
.. plantuml:: /the/path/of/file.uml
:caption: this is caption
:align: center
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx-plantuml-1.0.0.tar.gz.
File metadata
- Download URL: sphinx-plantuml-1.0.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/5.0.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e17238b3c0d49c2741ba0c47ac61d2949d5e760b49126a62db40b762908f13c8
|
|
| MD5 |
fe51a94cc12c99cd4ec84963a7d9ef0e
|
|
| BLAKE2b-256 |
0d5563da6497a7a9c7cae267cd9e53e1a6b1e6049a0d58b5041ee0fe3a693222
|
File details
Details for the file sphinx_plantuml-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sphinx_plantuml-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/5.0.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e803a567d4f069f40b0c1bade2c3fb0d669b7c8226c9ae0f77d5b9fa336634ee
|
|
| MD5 |
5cc959fe877ea10d54ec798ff0ebafbd
|
|
| BLAKE2b-256 |
dd9c53807726939886a18de46df3092241e475820b51c02777010b64e9c3a81e
|