Skip to main content

Sphinx "visio" extension; embed MS-Visio file (.vsd, .vsdx)

Project description

sphinxcontrib-visio is a sphinx extension. It embeds MS-Visio file (.vsd, .vsdx) to your documents.

Latest PyPI version Number of PyPI downloads

Requirements

  • Python 2.7, 3.3 or later

  • Sphinx 1.0 or later

  • pywin32

  • visio2img 1.2.0 or later

  • Microsoft Visio

Setup

  1. Install pywin32 manually

  2. Install sphinxcontrib-visio package:

    $ pip install sphinxcontrib-visio

And then, append sphinxcontrib.visio to conf.py of your Sphinx project:

# extensions = []
extensions = ['sphinxcontrib.visio']

Directives

.. visio-image: [filename]

This directive inserts MS-Visio image into the document. It inserts image from visio file named as filename.

Examples:

.. visio-image:: foo.vsdx

The visio-image directive supports all of the options of the image directive.

In addition, the following options are recognized:

pagenumber

Page number of the page to embed to document.

sheettext

Title of the sheet to embed to document.

.. visio-figure: [filename]

This directive inserts MS-Visio image into the document and its caption. It inserts image from visio file named as filename.

Examples:

.. visio-figure:: foo.vsdx

   caption of foo

The visio-figure directive supports all of the options of the figure directive.

In addition, the following options are recognized:

pagenumber

Page number of the page to embed to document.

nametext

Title of the page to embed to document.

Author

Yassu <mathyassu@gmail.com>

Maintainer

Takeshi KOMIYA <i.tkomiya@gmail.com>

License

Apache License 2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinxcontrib-visio-2.1.2.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

sphinxcontrib_visio-2.1.2-py2.py3-none-any.whl (5.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sphinxcontrib-visio-2.1.2.tar.gz.

File metadata

File hashes

Hashes for sphinxcontrib-visio-2.1.2.tar.gz
Algorithm Hash digest
SHA256 708400b26f35d800fc0b2fbc1f633355dd0163ef85cbcba6267ca720aed9a9ec
MD5 7b8622400d51715131dca17b950d03e0
BLAKE2b-256 1dda74d27f8617ed0dc3b20f4a9b127c1afa4355964b4330703f43e9536d49ac

See more details on using hashes here.

File details

Details for the file sphinxcontrib_visio-2.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sphinxcontrib_visio-2.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 26e9ff123669ed9eef1a9b6ca2139bb0d60e557bd0fffdc8fc950cd9b71b739e
MD5 8d4d758ec86ca50d0deb21ce027277db
BLAKE2b-256 fd6dd64b2017c1e4394a1bfcdfb7dfc67f0af1c16f2b021c49a30bcfb849777b

See more details on using hashes here.

Supported by

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