From b7cddc31729ceb349cac6a6544db782d92a497df Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 4 Jul 2017 14:10:07 +0200 Subject: [PATCH 1/8] Doc: Indicate the language --- Doc/tools/templates/layout.html | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc/tools/templates/layout.html b/Doc/tools/templates/layout.html index 640d8b30493299..e9b305d334f123 100644 --- a/Doc/tools/templates/layout.html +++ b/Doc/tools/templates/layout.html @@ -4,6 +4,7 @@ style="vertical-align: middle; margin-top: -1px"/>
  • Python{{ reldelim1 }}
  • + {{ language or 'en' }} {%- if versionswitcher is defined %} {{ release }} {% trans %}Documentation {% endtrans %}{{ reldelim1 }} From 7f74c22ace7b7a514361bd68d56c93b931e24ba6 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 11 Jul 2017 00:19:48 +0200 Subject: [PATCH 2/8] Renaming version_switcher to switchers (to add language_switcher). --- Doc/Makefile | 4 ++-- Doc/tools/static/{version_switch.js => switchers.js} | 0 Doc/tools/templates/layout.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename Doc/tools/static/{version_switch.js => switchers.js} (100%) diff --git a/Doc/Makefile b/Doc/Makefile index ae59f3294f1c06..526269d1e19d9e 100644 --- a/Doc/Makefile +++ b/Doc/Makefile @@ -167,12 +167,12 @@ serve: # for development releases: always build autobuild-dev: - make dist SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1 -A versionswitcher=1' + make dist SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1 -A switchers=1' -make suspicious # for quick rebuilds (HTML only) autobuild-dev-html: - make html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1 -A versionswitcher=1' + make html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1 -A switchers=1' # for stable releases: only build if not in pre-release stage (alpha, beta) # release candidate downloads are okay, since the stable tree can be in that stage diff --git a/Doc/tools/static/version_switch.js b/Doc/tools/static/switchers.js similarity index 100% rename from Doc/tools/static/version_switch.js rename to Doc/tools/static/switchers.js diff --git a/Doc/tools/templates/layout.html b/Doc/tools/templates/layout.html index e9b305d334f123..c2106678ac60f4 100644 --- a/Doc/tools/templates/layout.html +++ b/Doc/tools/templates/layout.html @@ -4,8 +4,8 @@ style="vertical-align: middle; margin-top: -1px"/>
  • Python{{ reldelim1 }}
  • + {%- if switchers is defined %} {{ language or 'en' }} - {%- if versionswitcher is defined %} {{ release }} {% trans %}Documentation {% endtrans %}{{ reldelim1 }} {%- else %} @@ -42,7 +42,7 @@ {% if builder != "htmlhelp" %} {% if not embedded %}{% endif %} - {% if versionswitcher is defined and not embedded %}{% endif %} + {% if switchers is defined and not embedded %}{% endif %} {% if pagename == 'whatsnew/changelog' and not embedded %}