Skip to content

Commit 4f10b93

Browse files
authored
Docs: Synchronise indexsidebar.html with docsbuild-scripts (#132567)
1 parent 11f6603 commit 4f10b93

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{#
2+
This file is only used in indexsidebar.html, where it is included in the docs
3+
by version list. For non-end-of-life branches, build_docs.py overwrites this
4+
list with the full list of versions.
5+
6+
Keep the following two files synchronised:
7+
* cpython/Doc/tools/templates/_docs_by_version.html
8+
* docsbuild-scripts/templates/_docs_by_version.html
9+
#}
10+
<li><a href="https://docs.python.org/3/">{% trans %}Stable{% endtrans %}</a></li>
11+
<li><a href="https://docs.python.org/dev/">{% trans %}In development{% endtrans %}</a></li>

Doc/tools/templates/indexsidebar.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ <h3>{% trans %}Download{% endtrans %}</h3>
22
<p><a href="{{ pathto('download') }}">{% trans %}Download these documents{% endtrans %}</a></p>
33
<h3>{% trans %}Docs by version{% endtrans %}</h3>
44
<ul>
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>
5+
{# _docs_by_version.html is overwritten by build_docs.py for non-EOL versions #}
6+
{% include "_docs_by_version.html" without context %}
77
<li><a href="https://www.python.org/doc/versions/">{% trans %}All versions{% endtrans %}</a></li>
88
</ul>
9-
109
<h3>{% trans %}Other resources{% endtrans %}</h3>
1110
<ul>
1211
{# XXX: many of these should probably be merged in the main docs #}

0 commit comments

Comments
 (0)