简体   繁体   English

如何在XWiki 2.0语法中使用Graphviz宏?

[英]How can I use the Graphviz macro in XWiki 2.0 syntax?

The XWiki FAQ gives an example for XWiki 1.0 syntax: XWiki FAQ提供了有关XWiki 1.0语法的示例:

{graphviz:type=dot}digraph G {Hello->world}{graphviz}

My XWiki is properly set up to display this. 我的XWiki已正确设置为显示它。 But I'm not able to translate this into XWiki 2.0 syntax. 但是我无法将其转换为XWiki 2.0语法。 I tried this 我试过了

{{graphviz type=dot}} ... {{/graphviz}}

and other variations, but the best I got was about "graphviz" not being a valid macro. 和其他变体,但是我得到的最好的是关于“ graphviz”不是有效的宏。

As soon as I switch back the document format to the old syntax, it works, so I assume this is not some kind of misconfiguration problem. 一旦我将文档格式切换回旧语法,它就可以工作,因此我认为这不是某种配置错误问题。

What's the correct syntax? 正确的语法是什么?

I am having the same issue. 我有同样的问题。

Doesn't look like it is yet supported. 看起来还不支持。 Check out their Jira log: http://jira.xwiki.org/jira/browse/XWIKI-3984 查看他们的Jira日志: http : //jira.xwiki.org/jira/browse/XWIKI-3984

The PlantUML extension is based on Graphviz and it may be used to build dot diagrams PlantUML扩展基于Graphviz,可用于构建

For more information see PlantUML DOT 有关更多信息,请参见PlantUML DOT

Using XWiki 2.0 syntax, just insert this snippet: 使用XWiki 2.0语法,只需插入以下代码段:

{{plantuml}}  
@startdot  
digraph G {  
  Hello -> world  
}  
@enddot  
{{/plantuml}}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM