Doxygen Markdown:如何包含和呈现.dot GraphViz文件

时间:2017-09-02 17:00:30

标签: markdown doxygen graphviz

我有Graphviz文件" foo.dot"拿着图表我想在降价区内进行渲染" bar.md"用doxygen。

知道:

  • Doxygen支持markdown(我解决了分隔的markdown .md文件的情况);
  • Doxygen支持Graphviz .dot文件和源中的指令(.cpp或其他)。

是否有可能在doxygen渲染的降价中做同样的事情(不需要像gravizo那样使用远程服务作为例子)?

我想这样做是为了从.dot图表和降价以及doxygen中获益。

2 个答案:

答案 0 :(得分:3)

我认为你必须设置

HAVE_DOT = YES
在你的doxygen配置文件中

。 请参阅标准doxyfile的注释:

# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
# available from the path. This tool is part of Graphviz (see:
# http://www.graphviz.org/), a graph visualization toolkit from AT&T and Lucent
# Bell Labs. The other options in this section have no effect if this option is
# set to NO
# The default value is: NO.

HAVE_DOT               = NO

此外,您还可以查看DOTFILE_DIRS值:

# The DOTFILE_DIRS tag can be used to specify one or more directories that
# contain dot files that are included in the documentation (see the \dotfile
# command).
# This tag requires that the tag HAVE_DOT is set to YES.

DOTFILE_DIRS           = 

如果您正确设置这些值,我认为您发布的\dofile myDiagram.dot命令应该有效。

答案 1 :(得分:0)

这也支持* .gv类型的文件,该文件与* .dot文件基本相同(内容没有差异),但是如果您安装了MS Word并且关联了* .dot文件类型,则可能更易于处理。 Word模板文件。

相关问题