Sphinx extension for drawio embedding
Project description
Sphinx SVG.IO Package
This is a simple extension for embedding draw.io diagramms into sphinx docs.
Usage
Diagram Embedding
In conf.py:
extensions = ["sphinx_svgio"]
In rst:
.. svgio:: path/to/scheme.drawio.svg
:name: scheme_1
:page: 2
:caption: some caption
With page option you can choose an initial page of complex draw.io scheme.
By default it is a page 1
Diagram Descriptions
It is possible to add a description for every diagram page.
Content of relevant svgio-page:: will be moved right under diagram for convenience:
.. svgio:: path/to/scheme.drawio.svg
:name: scheme_1
.. svgio-list::
:name: scheme_1
:expand:
.. svgio-page:: 1
page 1 description
.. svgio-page:: 2
page 2 description
.. svgio-page:: 3
page 3 description
:name: option must be the same as in the target svgio:: directive
Presence of :expand: option keeps all pages in a list visible.
Diagram Page references
Page of diagram can be referenced using new reference type:
:pageref:`Link title <scheme_1:2>`
Project details
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_svgio-0.0.9.tar.gz.
File metadata
- Download URL: sphinx_svgio-0.0.9.tar.gz
- Upload date:
- Size: 856.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4312bcb33d558b852ca6d344ceb660a1bd6d3c6e1cf50c015ad9d54a6ad2243b
|
|
| MD5 |
88539cbe18cdccebf6d44c552db38d48
|
|
| BLAKE2b-256 |
84ce216065253ebb13954bc69c51d011981abb159abb6dce6761f586fcab29b2
|
File details
Details for the file sphinx_svgio-0.0.9-py3-none-any.whl.
File metadata
- Download URL: sphinx_svgio-0.0.9-py3-none-any.whl
- Upload date:
- Size: 874.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa097f0cb9608a2729fca14b69b33ccbbf95f9de7fc5a24548b8f08e2704535e
|
|
| MD5 |
c2d6179c65e36bf43212135c6134c751
|
|
| BLAKE2b-256 |
63e546edf00d44d02d5c810ef1cb258eac38ba12b4dc814263e875405dd391bb
|