有没有办法避免生成“模块”。 doxygen中的树视图中的根项目?

发布于 2025-01-22 05:16:42 字数 401 浏览 1 评论 0原文

我喜欢灵活性模块组使您可以自定义文档结构。我想知道是否有任何方法(配置或自定义代码) 删除自动创建的“模块”树视图层?

<tab type="modules" visible="Yes" title=""/>

注意:我不想更改标题。我希望在保留孩子的同时删除层。

I love the flexibility module-grouping gives you to customize the document structure. I am wondering if there is any way (configuration or custom code) to remove the automatically created "Modules" treeview layer?

<tab type="modules" visible="Yes" title=""/>

current documentation structure

Note: I do not wish to change the title. I wish to remove the layer while keeping its children.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

淡忘如思 2025-01-29 05:16:42

据我所知,没有直接的方法可以做到这一点。
以下是解决方法,但我不知道所有含义和副作用。

小测试

/// \file

/// @defgroup grp1 First Group
/// the first group

/// @defgroup grp2 Second Group
/// the second group

在文件模块中

    [ "First Group", "group__grp1.html", null ],
    [ "Second Group", "group__grp2.html", null ]

进行

    [ "Modules", "modules.html", "modules" ],

    [ "First Group", "group__grp1.html", null ],
    [ "Second Group", "group__grp2.html", null ],

了一个 获取要求的结果,但是此解决方法必须手工完成,并且在副作用未知之前写成。

正如@jpgarza撰写的副作用是:

如果单击一些树视图项目,它将不记得选择,而TreeView将显示其他当前页面。

To the best of my knowledge there is no direct way to do this.
The following is a workaround but I don't know all the implications and side effects.

I did a small test with

/// \file

/// @defgroup grp1 First Group
/// the first group

/// @defgroup grp2 Second Group
/// the second group

In the file modules.js we see:

    [ "First Group", "group__grp1.html", null ],
    [ "Second Group", "group__grp2.html", null ]

In the file html/navtreedata.js we see:

    [ "Modules", "modules.html", "modules" ],

When we replace this line with

    [ "First Group", "group__grp1.html", null ],
    [ "Second Group", "group__grp2.html", null ],

it looks like you get the requested result, but this workaround has to be done by hand and as written before the side effects are unknown.

As written by @JPGarza a side effect is:

if you click on some tree view items it won't remember the selection and the treeview will show a different current page.

路还长,别太狂 2025-01-29 05:16:42

可以从doxygenlayout.xml手动删除。

doxygen -l
LAYOUT_FILE            = doc/DoxygenLayout.xml

It can be manually removed from the DoxygenLayout.xml

doxygen -l
LAYOUT_FILE            = doc/DoxygenLayout.xml
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文