Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/125.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 单击模块选项卡时,是否可以让Doxygen直接显示唯一的模块?_C++_Documentation_Doxygen - Fatal编程技术网

C++ 单击模块选项卡时,是否可以让Doxygen直接显示唯一的模块?

C++ 单击模块选项卡时,是否可以让Doxygen直接显示唯一的模块?,c++,documentation,doxygen,C++,Documentation,Doxygen,考虑以下单文件项目 /** \defgroup api Public API */ /** * This is foo and bar together. * \ingroup api */ void foobar() { // Nothing here to see. } 在包含此文件的目录中,我运行以下命令 doxygen -g doxygen Doxyfile 当我打开html/index.html时,我看到三个选项卡,分别名为主页、模块、和文件 如果单击模块,我会看到

考虑以下单文件项目

/** \defgroup api Public API */

/**
 * This is foo and bar together.
 * \ingroup api
 */
void foobar() {
    // Nothing here to see.
}
在包含此文件的目录中,我运行以下命令

doxygen -g
doxygen Doxyfile
当我打开
html/index.html
时,我看到三个选项卡,分别名为
主页
模块
、和
文件

如果单击
模块
,我会看到所有模块的列表,其中只包含一个模块。然后,我必须单击模块名称以查看该模块的文档

Doxygen中是否存在允许我避免最后点击的选项?

也就是说,如果我的项目中只有一个组,我希望生成的HTML只需要单击
Modules
选项卡即可显示一个组


我意识到我可以手动编辑生成的html,但我正在寻找doxygen的方法来实现这一点。

您可以通过更改布局文件来实现这一点。首先使用以下命令生成布局文件:

doxygen -l
然后在您的Doxyfile集合中

LAYOUT_FILE = DoxygenLayout.xml
现在编辑DoxygenLayout文件并替换

<tab type="modules" visible="yes" title="" intro=""/>


可以在此处找到有关doxygen布局文件的更多信息:

<tab type="user" visible="yes" url="@ref api" title="API" intro=""/>