【发布时间】:2019-10-24 16:37:59
【问题描述】:
我目前在 C# 项目中使用 doxygen,但如果可以在另一个使用 C# 的文档生成器中找到此功能,那么我很感兴趣。
我希望文档生成器忽略所有 cmets 和代码,除了带有某些注释关键字的那些。我想要的功能与 doxygen \cond 和 endcond 关键字相反。例如,类似:
///
/// This comment and variable declaration is ignored by the documentation
/// generator.
///
public double MySecretPublicVar;
/// /doc-this
/// This comment and variable declaration is documented by the documentation
/// generator.
/// /doc-this-end
public double MyDocumentedVar;
【问题讨论】:
-
我想一种选择是始终在每个文件的顶部放置一个“/cond”,在底部放置一个“/endcond”。然后,当我想要记录某些内容时,我以“/endcond”开始该部分,并以“/cond”结束。但这仍然很丑陋。
-
您可以尝试使用
FILTER_PATTERN/INPUT_FILTER进行尝试,当然,您知道没有文档的文件可以从INPUT标签中删除或放在EXCLUDE标签。
标签: c# documentation doxygen documentation-generation