File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change @@ -2,11 +2,10 @@ <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/ " > {% 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 %}
7
7
< li > < a href ="https://www.python.org/doc/versions/ "> {% trans %}All versions{% endtrans %}</ a > </ li >
8
8
</ ul >
9
-
10
9
< h3 > {% trans %}Other resources{% endtrans %}</ h3 >
11
10
< ul >
12
11
{# XXX: many of these should probably be merged in the main docs #}
You can’t perform that action at this time.
0 commit comments