From 436c4b023bfffc7ae1fbea7ba9e17029813f8dd4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 15 Dec 2017 18:53:51 +0100 Subject: [PATCH] doxygen: introduce M_PAGE_FINE_PRINT, test the layout options. --- doc/doxygen.rst | 10 ++++-- doxygen/dox2html5.py | 1 + doxygen/templates/base.html | 6 ++++ doxygen/test/layout/Doxyfile | 8 +++++ doxygen/test/layout/index.html | 54 +++++++++++++++++++++++++++++++ doxygen/test/layout/indexpage.xml | 11 +++++++ doxygen/test/test_layout.py | 33 +++++++++++++++++++ 7 files changed, 121 insertions(+), 2 deletions(-) create mode 100644 doxygen/test/layout/Doxyfile create mode 100644 doxygen/test/layout/index.html create mode 100644 doxygen/test/layout/indexpage.xml create mode 100644 doxygen/test/test_layout.py diff --git a/doc/doxygen.rst b/doc/doxygen.rst index 66f9fa51..79a8bdba 100644 --- a/doc/doxygen.rst +++ b/doc/doxygen.rst @@ -232,13 +232,19 @@ In addition, the m.css Doxygen theme recognizes the following extra options: Variable Description =================================== ======================================= :ini:`M_THEME_COLOR` Color for :html:``, - corresponding to the CSS style. See below - for more information. + corresponding to the CSS style. If empty, + no :html:`` tag is rendered. See + below for more information. :ini:`M_PAGE_HEADER` HTML code to put at the top of every page. Useful for example to link to different versions of the same documentation. The ``{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 + ``{doxygen_version}`` placeholder is + replaced with Doxygen version that + generated the input XML files. :ini:`M_CLASS_TREE_EXPAND_LEVELS` How many levels of the class tree to expand. ``0`` means only the top-level symbols are shown. If not set, ``1`` is diff --git a/doxygen/dox2html5.py b/doxygen/dox2html5.py index e8f8bb32..5832f4ab 100755 --- a/doxygen/dox2html5.py +++ b/doxygen/dox2html5.py @@ -1846,6 +1846,7 @@ def parse_doxyfile(state: State, doxyfile, config = None): 'HTML_OUTPUT', 'XML_OUTPUT', 'M_PAGE_HEADER', + 'M_PAGE_FINE_PRINT', 'M_THEME_COLOR']: if i in config: state.doxyfile[i] = ' '.join(config[i]) diff --git a/doxygen/templates/base.html b/doxygen/templates/base.html index 161c17ca..24116db0 100644 --- a/doxygen/templates/base.html +++ b/doxygen/templates/base.html @@ -9,7 +9,9 @@ {% block header_links %} {% endblock %} + {% if M_THEME_COLOR %} + {% endif %}