如何在Doxygen文档中包括文件夹?

问题描述

| 我想在Doxygen文档中包含文件夹。 我已经尝试过\\ page和\\ include,但是没有用,有人知道怎么做吗?这是树: +根 -+控制器 --- category.php -+型号 --- category.php -mainpage.php     

解决方法

        要添加对问题的评论,\\ page命令会将页面添加到您手动编写的文档中。即如果源文件包含\\ page声明,它将把内容添加到文档索引中。您可以在此处添加其他帮助,例如:
/*! \\page overviewpage Architecture Overview
 *
 * \\section memorymanagement Memory Management
 *
 * Some writing you want to appear as a help page in the documentation here.
 */
\\ include命令将包含文件的副本作为源代码块。 我认为您实际上是在问如何使Doxygen添加多个源目录。只要递归设置为YES(这不是默认设置),如果您已将根文件夹设置为Doxygen输入,则它对您的结构就可以正常工作。
RECURSIVE              = YES
如果还没有,则可以添加类似这样的文件夹,以及相对于Doxyfile文件的路径。
#---------------------------------------------------------------------------
# configuration options related to the input files
#---------------------------------------------------------------------------

# The INPUT tag can be used to specify the files and/or directories that contain 
# documented source files. You may enter file names like \"myfile.cpp\" or 
# directories like \"/usr/src/myproject\". Separate the files or directories 
# with spaces.

INPUT                  = src test/src
    

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...