当我使用多种语言时,Doxygen 生成空白页面
Doxygen generates empty pages when I use multiple languages
我在使用多种语言时遇到了问题,但是 和@albert 帮助了我,我解决了问题。但是当我这样做时,出现了一个新问题。当我在降价文件上使用多种语言时,Doxygen 在树视图中生成新的空白页面。例如:
\~turkish
@page Page1 TRPage1
@tableofcontents
\~endturkish
\~english
@page Page1 ENPage1
@tableofcontents
\~endenglish
假设 OUTPUT_LANGUAGE 是土耳其人。它会生成带有内容的 TRPage1,但也会生成空的 Page1。当我查看 HTML 目录时,文件名如下所示:
TRPage1 : _t_r_page1
Page1 : md__c_1__users__username__documents__projects__projectname_documentation_doc_pages__pages__page1.html
希望你能理解我。我不想在树视图中看到空白页。
我的 Doxygen 版本是:1.8.17
感谢您的帮助。
不管我的评论,那是关于 \~
:
I think at the moment this is not possible, I do remember that some effort has been invested in the case that a Markdown block started with empty lines to retrieve the first non empty line to get to the page title. Probably we need some construct for \~... settings (and \if... constructs as well)
可能有一些卑鄙的把戏:
\cond turkish
@page Page1 TRPage1
@tableofcontents
\endcond
\cond english
@page Page1 ENPage1
@tableofcontents
\endcond
并在 doxygen 配置文件中设置:
ENABLED_SECTIONS = english
或
ENABLED_SECTIONS = turkish
注意 \if
看起来它不起作用,因为 @page
将立即终止 if 块并稍后在唯一的 \endif
.[=18= 上找到]
我在使用多种语言时遇到了问题,但是
\~turkish
@page Page1 TRPage1
@tableofcontents
\~endturkish
\~english
@page Page1 ENPage1
@tableofcontents
\~endenglish
假设 OUTPUT_LANGUAGE 是土耳其人。它会生成带有内容的 TRPage1,但也会生成空的 Page1。当我查看 HTML 目录时,文件名如下所示:
TRPage1 : _t_r_page1
Page1 : md__c_1__users__username__documents__projects__projectname_documentation_doc_pages__pages__page1.html
希望你能理解我。我不想在树视图中看到空白页。
我的 Doxygen 版本是:1.8.17 感谢您的帮助。
不管我的评论,那是关于 \~
:
I think at the moment this is not possible, I do remember that some effort has been invested in the case that a Markdown block started with empty lines to retrieve the first non empty line to get to the page title. Probably we need some construct for \~... settings (and \if... constructs as well)
可能有一些卑鄙的把戏:
\cond turkish
@page Page1 TRPage1
@tableofcontents
\endcond
\cond english
@page Page1 ENPage1
@tableofcontents
\endcond
并在 doxygen 配置文件中设置:
ENABLED_SECTIONS = english
或
ENABLED_SECTIONS = turkish
注意 \if
看起来它不起作用,因为 @page
将立即终止 if 块并稍后在唯一的 \endif
.[=18= 上找到]