File tree 6 files changed +16
-173
lines changed
Misc/NEWS.d/next/Documentation
6 files changed +16
-173
lines changed Original file line number Diff line number Diff line change @@ -215,12 +215,12 @@ serve:
215
215
216
216
# for development releases: always build
217
217
autobuild-dev :
218
- make dist SPHINXOPTS=' $(SPHINXOPTS) -Ea -A daily=1 -A switchers=1 '
218
+ make dist SPHINXOPTS=' $(SPHINXOPTS) -Ea -A daily=1'
219
219
-make suspicious
220
220
221
221
# for quick rebuilds (HTML only)
222
222
autobuild-dev-html :
223
- make html SPHINXOPTS=' $(SPHINXOPTS) -Ea -A daily=1 -A switchers=1 '
223
+ make html SPHINXOPTS=' $(SPHINXOPTS) -Ea -A daily=1'
224
224
225
225
# for stable releases: only build if not in pre-release stage (alpha, beta)
226
226
# release candidate downloads are okay, since the stable tree can be in that stage
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6
6
{% trans %}CPython implementation detail:{% endtrans %}
7
7
{% trans %}Deprecated since version {deprecated}, will be removed in version {removed}{% endtrans %}
8
8
{% trans %}Deprecated since version {deprecated}, removed in version {removed}{% endtrans %}
9
+
10
+
11
+ In docsbuild-scripts, when rewriting indexsidebar.html with actual versions:
12
+
13
+ {% trans %}in development{% endtrans %}
14
+ {% trans %}pre-release{% endtrans %}
15
+ {% trans %}stable{% endtrans %}
16
+ {% trans %}security-fixes{% endtrans %}
17
+ {% trans %}EOL{% endtrans %}
Original file line number Diff line number Diff line change @@ -2,12 +2,8 @@ <h3>{% trans %}Download{% endtrans %}</h3>
2
2
< p > < a href ="{{ pathto('download') }} "> {% trans %}Download these documents{% endtrans %}</ a > </ p >
3
3
< h3 > {% trans %}Docs by version{% endtrans %}</ h3 >
4
4
< ul >
5
- < li > < a href ="https://docs.python.org/3.10/ "> {% trans %}Python 3.10 (in development){% endtrans %}</ a > </ li >
6
- < li > < a href ="https://docs.python.org/3.9/ "> {% trans %}Python 3.9 (pre-release){% endtrans %}</ a > </ li >
7
- < li > < a href ="https://docs.python.org/3.8/ "> {% trans %}Python 3.8 (stable){% endtrans %}</ a > </ li >
8
- < li > < a href ="https://docs.python.org/3.7/ "> {% trans %}Python 3.7 (stable){% endtrans %}</ a > </ li >
9
- < li > < a href ="https://docs.python.org/3.6/ "> {% trans %}Python 3.6 (security-fixes){% endtrans %}</ a > </ li >
10
- < li > < a href ="https://docs.python.org/2.7/ "> {% trans %}Python 2.7 (EOL){% endtrans %}</ a > </ li >
5
+ < li > < a href ="https://docs.python.org/ "> {% trans %}Stable{% endtrans %}</ a > </ li >
6
+ < li > < a href ="https://docs.python.org/dev/ "> {% trans %}In development{% endtrans %}</ a > </ li >
11
7
< li > < a href ="https://www.python.org/doc/versions/ "> {% trans %}All versions{% endtrans %}</ a > </ li >
12
8
</ ul >
13
9
Original file line number Diff line number Diff line change 12
12
13
13
{% block rootrellink %}
14
14
{{ super() }}
15
- < li >
16
- {%- if switchers is defined %}
17
- < span class ="language_switcher_placeholder "> {{ language or 'en' }}</ span >
18
- < span class ="version_switcher_placeholder "> {{ release }}</ span >
19
- < a href ="{{ pathto('index') }} "> {% trans %}Documentation {% endtrans %}</ a > {{ reldelim1 }}
20
- {%- else %}
15
+ < li id ="cpython-language-and-version ">
21
16
< a href ="{{ pathto('index') }} "> {{ shorttitle }}</ a > {{ reldelim1 }}
22
- {%- endif %}
23
17
</ li >
24
18
{% endblock %}
25
19
26
20
{% block extrahead %}
27
21
< link rel ="canonical " href ="https://docs.python.org/3/{{pagename}}.html " />
28
22
{% if builder != "htmlhelp" %}
29
- {% if switchers is defined and not embedded %}
30
- < script type ="text/javascript " src ="{{ pathto('_static/switchers.js', 1) }} "> </ script > {% endif %}
31
23
{% if pagename == 'whatsnew/changelog' and not embedded %}
32
24
< script type ="text/javascript " src ="{{ pathto('_static/changelog_search.js', 1) }} "> </ script > {% endif %}
33
25
{% endif %}
Original file line number Diff line number Diff line change
1
+ Language and version switchers, previously maintained in every cpython
2
+ branches, are now handled by docsbuild-script.
You can’t perform that action at this time.
0 commit comments