chiark / gitweb /
documentation/doxygen: do not show Doxygen version 0 on empty index.
authorMarr11317 <remimarche@gmail.com>
Thu, 9 Apr 2020 22:47:00 +0000 (18:47 -0400)
committerVladimír Vondruš <mosra@centrum.cz>
Fri, 8 May 2020 13:38:38 +0000 (15:38 +0200)
Co-authored-by: Vladimír Vondruš <mosra@centrum.cz>
documentation/doxygen.py
documentation/templates/doxygen/base.html
documentation/test_doxygen/page_empty_index/Doxyfile
documentation/test_doxygen/page_empty_index/index.html

index a0830be488fde9dd695720714ed1ec43c7c09421..0560f51b859da0291809e3b5f9823f53271e113f 100755 (executable)
@@ -3603,7 +3603,7 @@ def run(state: State, *, templates=default_templates, wildcard=default_wildcard,
         compound.breadcrumb = [(state.doxyfile['PROJECT_NAME'], 'index.html')]
         template = env.get_template('page.html')
         rendered = template.render(compound=compound,
-            DOXYGEN_VERSION='0',
+            DOXYGEN_VERSION=None,
             FILENAME='index.html',
             SEARCHDATA_FORMAT_VERSION=searchdata_format_version,
             **state.doxyfile)
index a1eee4c6ce99032b8ab1320a0f94b7d73e03edce..39ea7c26cf233935e3bb9fbbdc9b6be8757c8b5f 100644 (file)
     <div class="m-row">
       <div class="m-col-l-10 m-push-l-1">
         {% if M_PAGE_FINE_PRINT == '[default]' %}
-        <p>{{ PROJECT_NAME }}{% if PROJECT_BRIEF %} {{ PROJECT_BRIEF }}{% endif %}. Created with <a href="https://doxygen.org/">Doxygen</a> {{ DOXYGEN_VERSION }} and <a href="https://mcss.mosra.cz/">m.css</a>.</p>
+        <p>{{ PROJECT_NAME }}{% if PROJECT_BRIEF %} {{ PROJECT_BRIEF }}{% endif %}. Created with {% if DOXYGEN_VERSION %}<a href="https://doxygen.org/">Doxygen</a> {{ DOXYGEN_VERSION }} and {% endif %}<a href="https://mcss.mosra.cz/">m.css</a>.</p>
         {% else %}
         {{ M_PAGE_FINE_PRINT|replace('{doxygen_version}', DOXYGEN_VERSION) }}
         {% endif %}
index 0797976696ba66ac16681c986436899031413c6a..b24370dffa0bf2102f994c73ee90ea48b1b13539 100644 (file)
@@ -6,7 +6,9 @@ GENERATE_XML            = YES
 XML_PROGRAMLISTING      = NO
 CASE_SENSE_NAMES        = YES
 
-##! M_PAGE_FINE_PRINT   =
+# Keeping the default M_PAGE_FINE_PRINT to test that no "Doxygen version 0" is
+# added to the footer.
+
 ##! M_THEME_COLOR       =
 ##! M_FAVICON           =
 ##! M_LINKS_NAVBAR1     =
index 0c441b48647fb2c854f0d2a2da6a0f06adbc0558..cbc0947c296d1a19b3326c148f4839b983425be2 100644 (file)
     </div>
   </div>
 </article></main>
+<footer><nav>
+  <div class="m-container">
+    <div class="m-row">
+      <div class="m-col-l-10 m-push-l-1">
+        <p>My Project. Created with <a href="https://mcss.mosra.cz/">m.css</a>.</p>
+      </div>
+    </div>
+  </div>
+</nav></footer>
 </body>
 </html>