如何在Doxygen文档中获取纯文本文件

如何在Doxygen文档中获取纯文本文件

本文介绍了如何在Doxygen文档中获取纯文本文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在Doxygen文档中包括任何文本文件。唯一的例外是我设置为主页的 README.md 文件。

I cannot include any text file in my Doxygen documentation. The only exception is a README.md file that I set as the main page.

特别是,我会希望查看文档中的 Changelog.txt 文件。我试图将其显式添加到 INPUT 字段和 FILE_PATTERNS 字段中,但没有成功。在生成的HTML文档中,我无法在文件列表中找到任何内容,也无法进行搜索。

In particular, I would like to see the Changelog.txt file in the documentation. I tried to add it explicitly in the INPUT field and in the FILE_PATTERNS field, without success. In the generated HTML documentation, I cannot find anything neither in the file list nor making a search.

唯一的踪迹是在Doxygen的日志文件中:

The only trace is in Doxygen's log file:

Preprocessing C:/Source/Changelog.txt...
Parsing file C:/Source/Changelog.txt...
...
Parsing code for file Changelog.txt...






如果我将文件的扩展名从 txt 更改为 md ,则文件为添加到文档中。


If I change the extension of the file from txt to md, the file is added to the documentation.

推荐答案

您需要 EXTENSION_MAPPING = txt = md 否则, .txt 文件将作为 C / C ++ 源文件处理,并且缺少注释符号,导致没有输出。

You need EXTENSION_MAPPING=txt=md otherwise the .txt file is handled as a C / C++ source file and it is missing comment signs, resulting in no output.

从文档中:

这篇关于如何在Doxygen文档中获取纯文本文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 03:45