16

Hello,

I try to use doxygen to generate code documentation from a set of folders. My folder structure is like this:

+root
+-include/
+-include/subdir/file.h
+-src
+-src/subdir/file.cpp
+-Documentation/doxygen.config

Then in the configuration file I have the following settings in the "default" configuration file (Which is stated in the documentation and other questions here):

INPUT                  = "../include" "../src"
RECURSIVE              = YES

The problem is that when running this configuration, the HTML output does not contain any documentation whatsoever. When I add all individual files like

INPUT  = "../include/subdir/file.h"

to the input, it does generate documentation for those files. Is there an additional setting in the default configuration that I need to include in order for doxygen to find the files and create documentation?

I'm using doxygen 1.8.4 on Linux Ubuntu (12.04 LTS).

Thanks in advance for any hints or tips.

4

2 回答 2

9

你可以简单地做../root而不是同时声明../include../src

还要确保不要在完整的绝对路径周围加上引号,因为没有这些也可以正常工作。

确保像您一样将递归设置为 YES。

将目录放入 INPUT 标签对我有用。

于 2014-09-25T18:04:49.307 回答
1

我不确定您是否仍然需要这个,但我已经为此苦苦挣扎了一段时间并找到了解决方案(至少对我而言)!

INPUT留空并将RECURSIVE标记设置为YES。我不是专家,也许其他更了解这些标签的人可以给出更好的答案,我只是偶然发现了解决方案

在源文件的最顶部,放置:

/// \file

这告诉 Doxygen 将其包含在 HTML 中,它将显示在文件选项卡中。

于 2017-11-19T13:56:58.570 回答