Skip to main content

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 page 1

Diagram Descriptions

It is possible to add a description for every diagramm 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::
        :page: 1

        page 1 description

    .. svgio-page::
        :page: 2

        page 2 description


    .. svgio-page::
        :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 in a list can be referenced using for example:

: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

sphinx_svgio-0.0.8.tar.gz (856.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_svgio-0.0.8-py3-none-any.whl (874.0 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_svgio-0.0.8.tar.gz.

File metadata

  • Download URL: sphinx_svgio-0.0.8.tar.gz
  • Upload date:
  • Size: 856.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for sphinx_svgio-0.0.8.tar.gz
Algorithm Hash digest
SHA256 86223ecd4f7affec50c006aef996878b3468b23d77badc39794e2edf7dad887a
MD5 a58ba69bf8fef20f855a3dd89c485248
BLAKE2b-256 5eba4265f9ab2329fa333d88024af8240b98722c4d72e9e3ac7cb9d9ef1c0e5b

See more details on using hashes here.

File details

Details for the file sphinx_svgio-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: sphinx_svgio-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 874.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for sphinx_svgio-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 091a245170f8b7119571afeb4041a041b0e4f05dab10b2934f87c51c27e011aa
MD5 4ebee2ce65ff8190b07460dd6675ed53
BLAKE2b-256 b19675b74f2a98ae502f2fedba69af7e482984f0547b0d20c166fa1a177bef63

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page