Doxygen 包含 css 到 htmlinclude 文件

Doxygen include css to htmlinclude file

我正在使用 Doxygen 来记录一些 C++ 代码,我已经成功地用 @htmlinclude 包含了一个 HTML 文件,但是在 HTML 文件中我将 <link rel="stylesheet" href="styles.css"> 以包含 CSS 文件,在控制台中,它显示为找不到文件。我是不是遗漏了什么,或者是否无法在 Doxygen 中包含 CSS 文件。

Doxygen 具有样式表的配置设置:

  • HTML_EXTRA_STYLESHEET (http://doxygen.nl/manual/config.html#cfg_html_extra_stylesheet)

    The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined cascading style sheets that are included after the standard style sheets created by doxygen. Using this option one can overrule certain style aspects. This is preferred over using HTML_STYLESHEET since it does not replace the standard style sheet and is therefore more robust against future updates. Doxygen will copy the style sheet files to the output directory.

我认为您可能不需要 HTML_EXTRA_FILESHTML_EXTRA_STYLESHEET(否则了解这种可能性也无妨):

  • HTML_EXTRA_FILES (http://doxygen.nl/manual/config.html#cfg_html_extra_files)

    The HTML_EXTRA_FILES tag can be used to specify one or more extra images or other source files which should be copied to the HTML output directory. Note that these files will be copied to the base HTML output directory.