Skip to content

agaer/sphinxcontrib-visio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sphinxcontrib-visio

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

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:

page : number
Page number of the page to embed to document.
sheet : text

Title of the sheet to embed to document.

Note

name is deprecated on 2.0.0

.. 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:

page : number
Page number of the page to embed to document.
name : text
Title of the page to embed to document.

Author

Yassu <[email protected]>

Maintainer

Takeshi KOMIYA <[email protected]>

License

Apache License 2.0

About

Directive for vsd format in RST(using python3)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 55.3%
  • Makefile 22.9%
  • Batchfile 21.8%