是否可以在doxygen中有两个与main/index页面同级的链接
Is it possible to have two links at the same level as the main/index page in doxygen
我是 doxygen 的新手,我不确定它是否可行,但我希望在我的树层次结构导航视图中有一些链接与 main/index 页面处于同一级别,而不是主页的子页面。感谢帮助
可能吗?是的
它是自动化且简单的吗?编号
最复杂也是最难的方法是从自定义页眉、页脚和样式表文件的doxygen机制入手,构建一个完全自定义的菜单系统。如果您对 HTML/CSS 了解不多,这可能是一项艰巨的任务。您将需要为要包含的每一点菜单设计提供自定义部分。如果您想走那条路,请开始阅读 doxygen 的 Customizing the output 页面上的基础知识。
另一个选项是在生成 doxygen 菜单后对其进行调整。这是一个手动步骤,每次构建文档时都需要重做。但它所需要的只是修改 doxygen 生成的 navtreedata.js
文件以进行所需的更改。该文件具有以下结构(这是一个示例,可能与您的不同):
var NAVTREE =
[
[ "Utility Library", "index.html", [
[ "Main Page", "index.html", null ],
[ "Classes", "annotated.html", [
[ "Class List", "annotated.html", "annotated_dup" ],
[ "Class Hierarchy", "hierarchy.html", "hierarchy" ],
[ "Class Members", "functions.html", [
[ "All", "functions.html", null ],
[ "Functions", "functions_func.html", null ]
] ],
[ "Class Index", "classes.html", null ]
] ],
[ "Files", null, [
[ "File List", "files.html", "files" ]
] ],
[ "Examples", "examples.html", "examples" ]
] ]
];
var NAVTREEINDEX =
[
".html"
];
var SYNCONMSG = 'click to disable panel synchronisation';
var SYNCOFFMSG = 'click to enable panel synchronisation';
这里你可以更改导航,因为我在下面添加了 "SECOND LEVEL MENU ENTRY" 项。而且您显然可以提供您认为合适的子页面等。
var NAVTREE =
[
[ "Utility Library", "index.html", [
[ "Main Page", "index.html", null ],
[ "Classes", "annotated.html", [
[ "Class List", "annotated.html", "annotated_dup" ],
[ "Class Hierarchy", "hierarchy.html", "hierarchy" ],
[ "Class Members", "functions.html", [
[ "All", "functions.html", null ],
[ "Functions", "functions_func.html", null ]
] ],
[ "Class Index", "classes.html", null ]
] ],
[ "Files", null, [
[ "File List", "files.html", "files" ]
] ],
[ "Examples", "examples.html", "examples" ]
] ],
[ "SECOND LEVEL MENU ENTRY", "sample-file-secondary.html", [
] ]
];
var NAVTREEINDEX =
[
".html"
];
var SYNCONMSG = 'click to disable panel synchronisation';
var SYNCOFFMSG = 'click to enable panel synchronisation';
如果您想修改顶部菜单栏视图,可以通过编辑文件 menudata.js
以类似的方式进行。希望这对您有所帮助!
我是 doxygen 的新手,我不确定它是否可行,但我希望在我的树层次结构导航视图中有一些链接与 main/index 页面处于同一级别,而不是主页的子页面。感谢帮助
可能吗?是的
它是自动化且简单的吗?编号
最复杂也是最难的方法是从自定义页眉、页脚和样式表文件的doxygen机制入手,构建一个完全自定义的菜单系统。如果您对 HTML/CSS 了解不多,这可能是一项艰巨的任务。您将需要为要包含的每一点菜单设计提供自定义部分。如果您想走那条路,请开始阅读 doxygen 的 Customizing the output 页面上的基础知识。
另一个选项是在生成 doxygen 菜单后对其进行调整。这是一个手动步骤,每次构建文档时都需要重做。但它所需要的只是修改 doxygen 生成的 navtreedata.js
文件以进行所需的更改。该文件具有以下结构(这是一个示例,可能与您的不同):
var NAVTREE =
[
[ "Utility Library", "index.html", [
[ "Main Page", "index.html", null ],
[ "Classes", "annotated.html", [
[ "Class List", "annotated.html", "annotated_dup" ],
[ "Class Hierarchy", "hierarchy.html", "hierarchy" ],
[ "Class Members", "functions.html", [
[ "All", "functions.html", null ],
[ "Functions", "functions_func.html", null ]
] ],
[ "Class Index", "classes.html", null ]
] ],
[ "Files", null, [
[ "File List", "files.html", "files" ]
] ],
[ "Examples", "examples.html", "examples" ]
] ]
];
var NAVTREEINDEX =
[
".html"
];
var SYNCONMSG = 'click to disable panel synchronisation';
var SYNCOFFMSG = 'click to enable panel synchronisation';
这里你可以更改导航,因为我在下面添加了 "SECOND LEVEL MENU ENTRY" 项。而且您显然可以提供您认为合适的子页面等。
var NAVTREE =
[
[ "Utility Library", "index.html", [
[ "Main Page", "index.html", null ],
[ "Classes", "annotated.html", [
[ "Class List", "annotated.html", "annotated_dup" ],
[ "Class Hierarchy", "hierarchy.html", "hierarchy" ],
[ "Class Members", "functions.html", [
[ "All", "functions.html", null ],
[ "Functions", "functions_func.html", null ]
] ],
[ "Class Index", "classes.html", null ]
] ],
[ "Files", null, [
[ "File List", "files.html", "files" ]
] ],
[ "Examples", "examples.html", "examples" ]
] ],
[ "SECOND LEVEL MENU ENTRY", "sample-file-secondary.html", [
] ]
];
var NAVTREEINDEX =
[
".html"
];
var SYNCONMSG = 'click to disable panel synchronisation';
var SYNCOFFMSG = 'click to enable panel synchronisation';
如果您想修改顶部菜单栏视图,可以通过编辑文件 menudata.js
以类似的方式进行。希望这对您有所帮助!