]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41028: use generic version links in Docs index. 31155/head
authorNed Deily <nad@python.org>
Tue, 28 Dec 2021 07:08:54 +0000 (02:08 -0500)
committerNed Deily <nad@python.org>
Sun, 2 Jan 2022 22:55:22 +0000 (17:55 -0500)
Doc/tools/static/switchers.js
Doc/tools/templates/indexsidebar.html

index 1a1c7d0fa57e23856f292d8e70e1c5a002878819..e6949ab842dd54506736849346dfdf20f23787df 100644 (file)
@@ -10,8 +10,9 @@
     '(?:release/\\d.\\d[\\x\\d\\.]*)'];
 
   var all_versions = {
-    '3.10': 'dev (3.10)',
-    '3.9': 'pre (3.9)',
+    '3.11': 'dev (3.11)',
+    '3.10': '3.10',
+    '3.9': '3.9',
     '3.8': '3.8',
     '3.7': '3.7',
     '3.6': '3.6',
index 2ef90f094ddaa6b933fcf4aaa84882e258d7cfd8..f7bf6d8e491172621e949f9912e6098770b980a6 100644 (file)
@@ -2,12 +2,8 @@
 <p><a href="{{ pathto('download') }}">{% trans %}Download these documents{% endtrans %}</a></p>
 <h3>{% trans %}Docs by version{% endtrans %}</h3>
 <ul>
-  <li><a href="https://docs.python.org/3.10/">{% trans %}Python 3.10 (in development){% endtrans %}</a></li>
-  <li><a href="https://docs.python.org/3.9/">{% trans %}Python 3.9 (pre-release){% endtrans %}</a></li>
-  <li><a href="https://docs.python.org/3.8/">{% trans %}Python 3.8 (stable){% endtrans %}</a></li>
-  <li><a href="https://docs.python.org/3.7/">{% trans %}Python 3.7 (stable){% endtrans %}</a></li>
-  <li><a href="https://docs.python.org/3.6/">{% trans %}Python 3.6 (security-fixes){% endtrans %}</a></li>
-  <li><a href="https://docs.python.org/2.7/">{% trans %}Python 2.7 (EOL){% endtrans %}</a></li>
+  <li><a href="https://docs.python.org/">{% trans %}Stable{% endtrans %}</a></li>
+  <li><a href="https://docs.python.org/dev/">{% trans %}In development{% endtrans %}</a></li>
   <li><a href="https://www.python.org/doc/versions/">{% trans %}All versions{% endtrans %}</a></li>
 </ul>
 
@@ -18,4 +14,5 @@
   <li><a href="https://wiki.python.org/moin/BeginnersGuide">{% trans %}Beginner's Guide{% endtrans %}</a></li>
   <li><a href="https://wiki.python.org/moin/PythonBooks">{% trans %}Book List{% endtrans %}</a></li>
   <li><a href="https://www.python.org/doc/av/">{% trans %}Audio/Visual Talks{% endtrans %}</a></li>
+  <li><a href="https://devguide.python.org/">{% trans %}Python Developer’s Guide{% endtrans %}</a></li>
 </ul>