Skip to content

Commit 7f74c22

Browse files
committed
Renaming version_switcher to switchers (to add language_switcher).
1 parent b7cddc3 commit 7f74c22

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Doc/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ serve:
167167

168168
# for development releases: always build
169169
autobuild-dev:
170-
make dist SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1 -A versionswitcher=1'
170+
make dist SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1 -A switchers=1'
171171
-make suspicious
172172

173173
# for quick rebuilds (HTML only)
174174
autobuild-dev-html:
175-
make html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1 -A versionswitcher=1'
175+
make html SPHINXOPTS='$(SPHINXOPTS) -Ea -A daily=1 -A switchers=1'
176176

177177
# for stable releases: only build if not in pre-release stage (alpha, beta)
178178
# release candidate downloads are okay, since the stable tree can be in that stage
File renamed without changes.

Doc/tools/templates/layout.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
style="vertical-align: middle; margin-top: -1px"/></li>
55
<li><a href="https://www.python.org/">Python</a>{{ reldelim1 }}</li>
66
<li>
7+
{%- if switchers is defined %}
78
<span class="language_switcher_placeholder">{{ language or 'en' }}</span>
8-
{%- if versionswitcher is defined %}
99
<span class="version_switcher_placeholder">{{ release }}</span>
1010
<a href="{{ pathto('index') }}">{% trans %}Documentation {% endtrans %}</a>{{ reldelim1 }}
1111
{%- else %}
@@ -42,7 +42,7 @@
4242
<link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html" />
4343
{% if builder != "htmlhelp" %}
4444
{% if not embedded %}<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>{% endif %}
45-
{% if versionswitcher is defined and not embedded %}<script type="text/javascript" src="{{ pathto('_static/version_switch.js', 1) }}"></script>{% endif %}
45+
{% if switchers is defined and not embedded %}<script type="text/javascript" src="{{ pathto('_static/switchers.js', 1) }}"></script>{% endif %}
4646
{% if pagename == 'whatsnew/changelog' and not embedded %}
4747
<script type="text/javascript">
4848
$(document).ready(function() {

0 commit comments

Comments
 (0)