From: Ezio Melotti Date: Sat, 27 Oct 2012 19:04:56 +0000 (+0300) Subject: #8040: add a version switcher to the documentation. Patch by Yury Selivanov. X-Git-Tag: v2.7.4rc1~449 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3d072066c75865b230d27538c5c3afb9875321f9;p=thirdparty%2FPython%2Fcpython.git #8040: add a version switcher to the documentation. Patch by Yury Selivanov. --- diff --git a/Doc/tools/sphinxext/layout.html b/Doc/tools/sphinxext/layout.html index d4bb105e8313..4b16b3f741ef 100644 --- a/Doc/tools/sphinxext/layout.html +++ b/Doc/tools/sphinxext/layout.html @@ -2,18 +2,27 @@ {% block rootrellink %}
  • -
  • {{ shorttitle }}{{ reldelim1 }}
  • +
  • Python{{ reldelim1 }}
  • +
  • + {%- if versionswitcher is defined %} + {{ release }} + Documentation{{ reldelim1 }} + {%- else %} + {{ shorttitle }}{{ reldelim1 }} + {%- endif %} +
  • {% endblock %} {% block extrahead %} {% if not embedded %}{% endif %} + {% if versionswitcher is defined and not embedded %}{% endif %} {{ super() }} {% endblock %} {% block footer %}