From 82e5ab9e14b81e0d21ef61f503a2b4c8638776e8 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 8 Feb 2017 08:13:43 -0500 Subject: Utilities/Sphinx: Add option for cmake.org version switch to html Leave the option undocumented since it is not for general use. We can simply pass it through `SPHINX_FLAGS` when building for publication on `cmake.org`. --- Utilities/Sphinx/templates/layout.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Utilities/Sphinx/templates/layout.html b/Utilities/Sphinx/templates/layout.html index 177e044..be2660c 100644 --- a/Utilities/Sphinx/templates/layout.html +++ b/Utilities/Sphinx/templates/layout.html @@ -8,10 +8,22 @@ CMake{{ reldelim1 }}
  • + {%- if versionswitch is defined %} + {{ release }} + {% trans %}Documentation{% endtrans %}{{ reldelim1 }} + {%- else %} {{ shorttitle|e }}{{ reldelim1 }} + {%- endif %}
  • {% endblock %} +{% block extrahead %} + {% if versionswitch is defined %} + + {% endif %} +{{ super() }} +{% endblock %} + {# Put some context in the html title element. Workaround for #} {# https://bitbucket.org/birkenfeld/sphinx/issue/1492/qthelp-generate-html-title-element-should #} {% block htmltitle %} -- cgit v0.12