Doxygen 可以处理 MainPage.dox 以外的页面吗
如果您将 MainPage.dox 文件放入 Doxygen 的搜索路径中,它会将其添加到源文档上方的 Doxygen/html 中的输出中。但是你可以拥有像 MainPage.dox 这样的多个文件吗?或者你仅限于一个?
If you put a MainPage.dox file in Doxygen's search path, it will add it to the output in Doxygen/html above the source documentation. But can you have multiple files like MainPage.dox? Or are you limited to one?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Doxygen 将识别并解析任何具有 *.dox 扩展名的文件,并将其包含在生成的文档中。这些文件将生成的内容由文件中的 doxygen 注释决定。例如,如果您想修改主页,则需要如下注释:
您还可以使用此技术创建应出现在其他页面上的文档:
假设 HTML 输出,此表单将创建一个名为
another_page 的文件.html
与index.html
处于同一级别。标题将为另一页
,后面将引用内容。还将生成一个名为“相关页面”的附加选项卡,其中包含指向以这种方式创建的所有相关页面的链接。像这样的块可以出现在 doxygen 解析的任何文件中(包括头文件或源文件),并且可以包含多个页面的定义(上面的两个注释都可以在单个文件中)。它们所在的文件不会对生成的输出产生影响。
Doxygen will recognize and parse any file that has a *.dox extension and include it in the resulting documentation. What those files will produce is dictated by the doxygen comments located in the file. For example, if you want to modify the main page, you'll need a comment like:
You can also create documentation that should appear on other pages using this technique:
Assuming HTML output, this form will create a file named
another_page.html
at the same level asindex.html
. The title will beAnother Page
, and the content referenced will follow. An additional tab will also be produced namedRelated Pages
which will have links to all of the related pages created in this manner.Blocks like this can occur in any file that doxygen parses (including header or source files), and can contain definitions for multiple pages (both of the comments above could be in a single file). The file they're located in does not have an impact on the output that is produced.
从 1.8.4 开始,
.md
markdown 页面也可以作为单独的页面包含在内,而无需.dox
C++ 之类的注释/** */
如果doxygen
根据您的INPUT
和FILE_PATTERNS
配置考虑它们。使用
.md
和.dox
之间的一个区别是,.md
文件生成一个与基本名称同名的相关页面,但没有扩展名.md
文件,而.dox
只生成由\page
命令指定名称的页面。仍然可以使用
.md
文件中的\page
命令。例如,如果文件
md_page.md
包含:这将在“相关页面”下生成 2 个页面,标题为:
As of 1.8.4,
.md
markdown pages can also be included as separate pages without need for.dox
C++ like comments/** */
if they are to be considered bydoxygen
according to yourINPUT
andFILE_PATTERNS
configs.One difference between using
.md
and.dox
is that.md
files produce a Related page with the same name as the basename without extension of the.md
file, while.dox
only produces pages with names given by\page
commands.It is still possible to use
\page
commands from.md
files.For example, if file
md_page.md
contains:this will generate 2 pages under "Related Pages" entitled: