【发布时间】:2015-03-10 04:17:58
【问题描述】:
假设您有一个相当复杂的 README,您希望 Doxygen 处理以生成文档的主页,类似于
/*!
\mainpage Welcome to this code
\section S1 Introduction
Some stuff to explain why you coded all this
\section S2 Examples
Many examples of how the code can be used
!!! some line which you wouldn't write in a documentation
\section S3 Some other stuff
*/
并且您希望 doxygen 忽略以 !!! 开头的行但是您不想删除该行,因为您计划稍后对其进行编辑。
好吧,你怎么能这样做?
编辑:以下内容:
/*!
\mainpage Welcome to this code
\section S1 Introduction
Some stuff to explain why you coded all this
\section S2 Examples
Many examples of how the code can be used
\cond NEVER
!!! some line which you wouldn't write in a documentation
\endcond
\section S3 Some other stuff
*/
未能将S3 部分放在主页中...
【问题讨论】:
-
你看过\internal和\cond
-
我尝试
\cond NEVER !!! some line which you wouldn't write in a documentation \endcond,但它破坏了整个页面,因此不会添加\section S3 Some other stuff。我会检查\internal -
我刚刚检查了
\internal !!! some line which you wouldn't write in a documentation \endinternal并且它有效,所以谢谢@albert。猜猜我会回答吗?
标签: doxygen