summaryrefslogtreecommitdiffstats
path: root/src/configimpl.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-05-30 14:05:47 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-05-30 14:05:47 (GMT)
commit7c62ce232d629e81d611de8d2428f05f080472d0 (patch)
tree3717274f282843485b08de8681edde2b62affaef /src/configimpl.l
parent1705a1442dfa83d6c442bb45ed0d6e76f135ee5a (diff)
downloadDoxygen-7c62ce232d629e81d611de8d2428f05f080472d0.zip
Doxygen-7c62ce232d629e81d611de8d2428f05f080472d0.tar.gz
Doxygen-7c62ce232d629e81d611de8d2428f05f080472d0.tar.bz2
Creating chm files for doxygen tests
By means of `nmake tests TEST_FLAGS="--xhtml --keep --cfg GENERATE_HTMLHELP=YES --cfg HHC_LOCATION=C:/PROGRA~2/HTMLHE~1/hhc.exe --cfg SEARCHENGINE=NO" it is possible to generate for each doxygen test an index.chm, but there are a number of problems: - it is only possible to use extension `.html` so this is now automatically done (configimpl.l) otherwise when opening the file an error is displayed. - it is not [possible to use "empty" hhc / hhk file (i.e. no `<li>` elements), in this case the files are still generated but not used anymore (error like `error: failed to run html help compiler on index.hhp` e.g. for test 1). - a full qualified / absolute is not allowed for e.g msc images (test 37) the files should anyway be on the "html" directory so just using the filename in the "hhp" file (` t << QFileInfo(imageFiles.at(i)).fileName().data() << endl;`)
Diffstat (limited to 'src/configimpl.l')
-rw-r--r--src/configimpl.l5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/configimpl.l b/src/configimpl.l
index d07e25c..1710fd6 100644
--- a/src/configimpl.l
+++ b/src/configimpl.l
@@ -1620,6 +1620,11 @@ void Config::checkAndCorrect()
err("When enabling GENERATE_HTMLHELP the tree view (GENERATE_TREEVIEW) should be disabled. I'll do it for you.\n");
Config_getBool(GENERATE_TREEVIEW)=FALSE;
}
+ if (!(Config_getString(HTML_FILE_EXTENSION) == ".html") && Config_getBool(GENERATE_HTMLHELP))
+ {
+ err("When enabling GENERATE_HTMLHELP the HTML_FILE_EXTENSION should be \".html\". I'll do it for you.\n");
+ Config_getString(HTML_FILE_EXTENSION)=".html";
+ }
if (Config_getBool(SEARCHENGINE) && Config_getBool(GENERATE_HTMLHELP))
{
err("When enabling GENERATE_HTMLHELP the search engine (SEARCHENGINE) should be disabled. I'll do it for you.\n");