在PHP/Phabricator中使用PlantUML图表代码

6

1
你看过使用PlantUML工具的示例集成吗?此外,还有PHP API客户端代码(在https://plantuml.com/fr/sitemap-plugins中引用),可以参考https://plantuml.com/fr/code-php。 - bruno
谢谢,我知道了。使用https://github.com/jawira/plantuml-encoding作为示例调用服务器并不是我们的意图。我们可以将plantuml.jar部署到Phabricator中,问题在于如何将其(本地)使用集成到Phabricator代码中。 - Paul Verest
Mediawiki(维基百科源,使用PHP编写)有一个PlantUML的扩展。像这段代码这样的东西对你有用吗? - JCOC611
1个回答

3
您使用的语法是用于源代码的语法高亮显示。我认为最好定义一个新的remarkup标签来实现此目的(通过在自定义扩展中扩展PhabricatorRemarkupCustomBlockRule),而不是试图重载语法高亮显示。
很遗憾,我找不到任何扩展PhabricatorRemarkupCustomBlockRule的示例,但有一些扩展PhabricatorRemarkupCustomInlineRule的示例,应该是类似的,比如这里:https://discourse.phabricator-community.org/t/hyperlink-to-external-bug-tracking-system/1415

谢谢,那是一个好的开始。是的,这就是在Markdown中编写以获取图片而不仅仅是高亮显示的方法。例如,请参阅GitLab https://docs.gitlab.com/ee/administration/integration/plantuml.html - Paul Verest

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接