Sphinx "astah" extension; embed diagram by using astah
Project description
sphinxcontrib-astah
This package contains the astah Sphinx extension.
This extension enable you to embed diagrams by astah . Following code is sample:
.. astah-image:: [filename] .. astah-figure:: [filename] caption of figure
Setting
Install
$ pip install sphinxcontrib-astah
This extension uses astah from commandline. You need to setup astah and Java package.
Configure Sphinx
Add sphinxcontrib.astah to extensions at conf.py:
extensions += ['sphinxcontrib.astah']
And set your API key to astah_command_path:
astah_command_path = '/path/to/astah-command.sh'
Directive
.. astah-image:: [filename]
This directive insert a diagram into the document. If your diagram has multiple sheets, specify sheetid after #.
Examples:
.. astah-image:: my-diagram.asta .. astah-image:: my-diagram.asta#class-diagramOptions are same as image directive .
.. astah-figure:: [filename]
This directive insert a diagram and its caption into the document.
Examples:
.. astah-figure:: my-diagram.asta Structure of this systemOptions are same as figure directive .
Configuration Options
astah_command_path
path to astah-command.sh (or astah-command.bat)
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
Hashes for sphinxcontrib-astah-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5c6bf61737d2e8098ed071d7996f8d8a3cd12f2dce953866420f9df51982667 |
|
MD5 | de8314b9a17bf2253c5f944a8de42a60 |
|
BLAKE2b-256 | e4e8a5e65d09b0b52f74faf659d81d91c31f900fefe4cc8554233d3deda1758f |
Hashes for sphinxcontrib_astah-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5022d9577b36c4ed55113b98a1e86bae3da6b081fac50a5ae4f8065d71265bf |
|
MD5 | bc742fc08047004c1808090a847674f5 |
|
BLAKE2b-256 | f809cadda252b99c35690482b995838c8a42e19cff643ddba14c4b2ece381dfc |