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没有从表中提取数据,只将指针放入JList   java如何使用Mockito。是否验证对象?   Spring MVC Java配置   Android上webRTC时的java音频噪声监听器   我可以部署java。wso2dss上的汽车应用程序(SynapseMeditor和RESTAPI)?   java有没有“简单”的方法来使用protobuf for JavaFX?   尝试从keyVault获取密钥时,ApplicationTokenCredential中出现java Azure NoSuchMethodExist错误   java Spark与ElasticSearch的集成   java在MySQL数据库中已有数据模型时创建实体   java可能的编码错误[I@24e11c   java更新中心和Web应用程序的数据库更改管理   在Android中,java无法使用凌空库从MySQL数据库中选择数据   java如何转换清单。用于apk的xml到二进制文件,并在安卓中编程   JAVAFX:为什么等待游标需要一个新线程?   java无法使用cmis中的版本更新文档   java Struts2验证行为怪异   java如何使用REST Assured自动获取承载令牌   JavaEclipseSWT:gcStringExtent为同一字符串返回不同的值   java Hibernate ResultTransformer返回所有空值的映射