sphinx“astah”扩展;使用astah嵌入图表

sphinxcontrib-astah的Python项目详细描述


狮身人面像 https://travis-ci.org/tk0miya/sphinxcontrib-astah.svg?branch=masterhttps://coveralls.io/repos/tk0miya/sphinxcontrib-astah/badge.png?branch=masterhttps://codeclimate.com/github/tk0miya/sphinxcontrib-astah/badges/gpa.svg

这个包包含astah sphinx扩展。

此扩展允许您通过astah嵌入关系图。 以下代码是示例:

.. image:: [filename]

.. astah-image:: [filename]

.. astah-figure:: [filename]

   caption of figure

设置

安装

$ pip install sphinxcontrib-astah

此扩展使用命令行中的astah。您需要设置astah和java包。

配置sphinx

sphinxcontrib.astah添加到extensionsatconf.py

extensions += ['sphinxcontrib.astah']

并将api密钥设置为astah_command_path

astah_command_path = '/path/to/astah-command.sh'

指令

。图像::[文件名]。图::[文件名]

With this extension, image and figure directives can embed astah image to documents. At the same time, the directives accept sheet parameter through :option: option.

Examples:

.. image:: my-diagram.asta

.. figure:: my-diagram.asta

   caption

.. image:: my-diagram.asta
   :option: sheet=class-diagram

。astah图像::[文件名]

This directive insert a diagram into the document. If your diagram has multiple sheets, specify sheetid after ^{tt4}$.

Examples:

.. astah-image:: my-diagram.asta

.. astah-image:: my-diagram.asta#class-diagram

Options are same as image directive .

。一个图:【文件名】

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 .

配置选项

astah_命令路径

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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
安卓如何在java字符串中获取RATE的值   java ANT在哪里输出编译器错误?   在java中,while循环在何处启动对象   javacom。谷歌。格森。内部的LinkedTreeMap无法强制转换到我的类   java单选按钮。isSelected()方法未返回正确的响应   嵌入式系统中applet中的java相对码基字段   如何在eclipse中将Java应用程序附加到jvm探查器?   java为什么Android应用程序崩溃?   在java中拖放上传后保持文件夹结构   爪哇多领导人选举问题   java Springs RestTemplate如何处理postForEntity()中的错误响应   Java如何用前导零递增整数字符串?   java Android将文本作为图像共享给其他应用程序   Java搜索替换   java isDirectory()不适用于UNIX目录   java我们可以得到显示测试类是否通过或失败的TestNG报告吗   Java类对象排序和分组   简单Java幂递归   java在处理MethodArgumentNotValidException时如何访问请求对象?