Skip to main content

Sphinx "astah" extension; embed diagram by using astah

Project description

sphinxcontrib-astah

https://travis-ci.org/tk0miya/sphinxcontrib-astah.svg?branch=master https://coveralls.io/repos/tk0miya/sphinxcontrib-astah/badge.png?branch=master https://codeclimate.com/github/tk0miya/sphinxcontrib-astah/badges/gpa.svg

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-diagram

Options 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 system

Options are same as figure directive .

Configuration Options

astah_command_path

path to astah-command.sh (or astah-command.bat)

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

sphinxcontrib-astah-0.2.0.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

sphinxcontrib_astah-0.2.0-py2.py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 2 Python 3

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