Metadata-Version: 2.0
Name: sphinxcontrib-astah
Version: 0.1.0
Summary: Sphinx "astah" extension; embed diagram by using astah
Home-page: http://bitbucket.org/birkenfeld/sphinx-contrib
Author: Takeshi KOMIYA
Author-email: i.tkomiya@gmail.com
License: BSD
Download-URL: http://pypi.python.org/pypi/sphinxcontrib-astah
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Documentation
Classifier: Topic :: Utilities
Requires-Dist: Sphinx (>=0.6)

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

.. _astah: http://astah.change-vision.com/

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`_ .

.. _image directive: http://docutils.sourceforge.net/docs/ref/rst/directives.html#image
.. _figure directive: http://docutils.sourceforge.net/docs/ref/rst/directives.html#figure

Configuration Options
======================

astah_command_path

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


Repository
==========

This code is hosted by Bitbucket.

  http://bitbucket.org/birkenfeld/sphinx-contrib/


