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 Kafka在producer上流式传输自定义头   java ExecutorService:不需要输出   java并发读取不可修改的映射   如何匹配Java计算机的给定输出猜你的数字游戏;二进制搜索   java使用数据库创建新对象   javascript如何用spring mvc上传图像我尝试了这种方法,如何解决这个问题   java如何使用Quarkus Panache仅选择某些字段?   java如何通知其他对象(如何“关闭”队列)ArrayBlockingQueue中将不再有元素,   java使用JavaFX MediaPlayer从MP3读取ID3v2标记   当我们在Android上打开应用程序时,java仅在第三次显示toast   apache spark java。RuntimeException:java。lang.Integer不是bigint:java架构的有效外部类型。伊奥。IOException   模拟插座。用于测试Java的getOutputStream()   java在git对分期间,只运行失败的测试安全吗?或者我们应该运行所有测试?   java Android MediaPlayer音量非常低(已调整音量)   java组织。冬眠服务UnknownServiceException:请求的未知服务[org.hibernate.ogm.service.impl.OgmConfigurationService]   java扫描程序没有停止   java无法在JBoss EAP 6.2上调用远程EJB