From 0a5293a0b5f789286f04ff95f32f221e094d7615 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 16 Jan 2018 18:51:39 +0100 Subject: [PATCH] doxygen: make it possible to hide the footer altogether. Makes testing much easier. --- doc/doxygen.rst | 3 ++- doxygen/dox2html5.py | 1 + doxygen/templates/base.html | 8 +++++--- doxygen/test/compound_detailed/Doxyfile | 3 ++- doxygen/test/compound_detailed/File_8h.html | 10 ---------- doxygen/test/compound_detailed/namespaceEno.html | 10 ---------- doxygen/test/compound_detailed/namespaceFoo.html | 10 ---------- doxygen/test/compound_detailed/namespaceNamee.html | 10 ---------- doxygen/test/compound_detailed/namespaceType.html | 10 ---------- doxygen/test/compound_detailed/namespaceVar.html | 10 ---------- doxygen/test/compound_detailed/namespaceWarning.html | 10 ---------- doxygen/test/compound_detailed/structTemplate.html | 10 ---------- .../compound_detailed/structTemplateWarning.html | 10 ---------- .../structTemplate_3_01void_01_4.html | 10 ---------- doxygen/test/compound_listing/Class_8h.html | 10 ---------- doxygen/test/compound_listing/Doxyfile | 3 ++- doxygen/test/compound_listing/File_8h.html | 10 ---------- doxygen/test/compound_listing/annotated.html | 10 ---------- .../classRoot_1_1Directory_1_1Sub_1_1Class.html | 10 ---------- .../dir_4b0d5f8864bf89936129251a2d32609b.html | 10 ---------- .../dir_bbe5918fe090eee9db2d9952314b6754.html | 10 ---------- doxygen/test/compound_listing/files.html | 10 ---------- doxygen/test/compound_listing/namespaceAnother.html | 10 ---------- .../compound_listing/namespaceRoot_1_1Directory.html | 10 ---------- doxygen/test/compound_listing/namespaces.html | 10 ---------- doxygen/test/compound_listing/page-no-toc.html | 10 ---------- doxygen/test/contents_blocks/Doxyfile | 3 ++- doxygen/test/contents_blocks/File_8h.html | 10 ---------- doxygen/test/contents_blocks/index.html | 10 ---------- doxygen/test/contents_blocks/old.html | 10 ---------- doxygen/test/contents_blocks/todo.html | 10 ---------- doxygen/test/contents_code/Doxyfile | 3 ++- doxygen/test/contents_code/index.html | 10 ---------- doxygen/test/contents_code/warnings.html | 10 ---------- doxygen/test/contents_code_language/Doxyfile | 3 ++- doxygen/test/contents_code_language/ansi.html | 10 ---------- doxygen/test/contents_code_language/index.html | 10 ---------- doxygen/test/contents_code_language/warnings.html | 12 +----------- doxygen/test/contents_custom/Doxyfile | 3 ++- doxygen/test/contents_custom/index.html | 10 ---------- doxygen/test/contents_custom/math.html | 10 ---------- doxygen/test/contents_custom/subpage1.html | 10 ---------- doxygen/test/contents_custom/subpage2.html | 10 ---------- doxygen/test/contents_image/Doxyfile | 3 ++- doxygen/test/contents_image/index.html | 10 ---------- doxygen/test/contents_image/warnings.html | 10 ---------- doxygen/test/contents_math/Doxyfile | 3 ++- doxygen/test/contents_math/index.html | 10 ---------- doxygen/test/contents_tagfile/Doxyfile | 3 ++- doxygen/test/contents_tagfile/index.html | 10 ---------- doxygen/test/contents_typography/Doxyfile | 3 ++- doxygen/test/contents_typography/index.html | 10 ---------- doxygen/test/contents_typography/warnings.html | 10 ---------- doxygen/test/cpp_enum_class/Doxyfile | 3 ++- doxygen/test/cpp_enum_class/File_8h.html | 12 +----------- doxygen/test/cpp_template_alias/Doxyfile | 3 ++- doxygen/test/cpp_template_alias/File_8h.html | 12 +----------- doxygen/test/cpp_template_alias/structTemplate.html | 12 +----------- doxygen/test/page_brief/Doxyfile | 3 ++- doxygen/test/page_brief/page-a.html | 10 ---------- doxygen/test/page_brief/page-b.html | 10 ---------- doxygen/test/page_brief/pages.html | 12 +----------- doxygen/test/page_order/Doxyfile | 3 ++- doxygen/test/page_order/pages.html | 10 ---------- doxygen/test/page_toc/Doxyfile | 3 ++- doxygen/test/page_toc/page-toc.html | 10 ---------- 66 files changed, 43 insertions(+), 504 deletions(-) diff --git a/doc/doxygen.rst b/doc/doxygen.rst index f3c0c76a..2deb4ba6 100644 --- a/doc/doxygen.rst +++ b/doc/doxygen.rst @@ -247,7 +247,8 @@ Variable Description ``{filename}`` placeholder is replaced with current file name. :ini:`M_PAGE_FINE_PRINT` HTML code to put into the footer. If not - set, a default generic text is used. The + set, a default generic text is used. If + empty, no footer is rendered at all. The ``{doxygen_version}`` placeholder is replaced with Doxygen version that generated the input XML files. diff --git a/doxygen/dox2html5.py b/doxygen/dox2html5.py index 0dd9dab0..2c735285 100755 --- a/doxygen/dox2html5.py +++ b/doxygen/dox2html5.py @@ -1774,6 +1774,7 @@ def parse_doxyfile(state: State, doxyfile, config = None): 'M_FILE_TREE_EXPAND_LEVELS': ['1'], 'M_EXPAND_INNER_TYPES': ['NO'], 'M_THEME_COLOR': ['#22272e'], + 'M_PAGE_FINE_PRINT': ['[default]'], 'M_SHOW_DOXYGEN_VERSION': ['YES'] } diff --git a/doxygen/templates/base.html b/doxygen/templates/base.html index 24116db0..ccb62b01 100644 --- a/doxygen/templates/base.html +++ b/doxygen/templates/base.html @@ -48,18 +48,20 @@ +{% if M_PAGE_FINE_PRINT %} +{% endif %} diff --git a/doxygen/test/compound_detailed/Doxyfile b/doxygen/test/compound_detailed/Doxyfile index 29eb753c..c25c5697 100644 --- a/doxygen/test/compound_detailed/Doxyfile +++ b/doxygen/test/compound_detailed/Doxyfile @@ -5,4 +5,5 @@ GENERATE_HTML = NO GENERATE_LATEX = NO GENERATE_XML = YES -M_SHOW_DOXYGEN_VERSION = NO +M_PAGE_FINE_PRINT = +M_THEME_COLOR = diff --git a/doxygen/test/compound_detailed/File_8h.html b/doxygen/test/compound_detailed/File_8h.html index 3d76117f..7cb7671b 100644 --- a/doxygen/test/compound_detailed/File_8h.html +++ b/doxygen/test/compound_detailed/File_8h.html @@ -6,7 +6,6 @@ -