我已经正确地安装了Asciidoctor和它的扩展asciidoctor图,因为我可以生成PlantUML图,我想用UMLet做同样的事情。根据AsciiDoc documentation,可以在AsciiDoc文档中插入UMLet图。
因此,我使用UMLet创建了一个图表,并将其复制/粘贴到我的AsciiDoc文档中,如下所示:
[umlet]
...
<diagram program="umlet" version="14.3.0">
<zoom_level>10</zoom_level>
<element>
<id>UMLUseCase</id>
<coordinates>
<x>60</x>
<y>100</y>
<w>120</w>
<h>40</h>
</coordinates>
<panel_attributes>Use case 1</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLActor</id>
<coordinates>
<x>230</x>
<y>80</y>
<w>60</w>
<h>110</h>
</coordinates>
<panel_attributes>Actor</panel_attributes>
<additional_attributes/>
</element>
</diagram>
...
输出结果是,而不是预期呈现的图表:
It opens the external program umlet but does not render anything :(
发布于 2020-02-23 13:02:06
请使用四个点(....)作为图表的块分隔符。
更改此选项将呈现您上面提供的示例。
因为我还没有在路径中安装umlet,所以我为这个添加了属性
:umlet: C:\...\Umlet\Umlet.exe
https://stackoverflow.com/questions/60203121
复制