From 4f10b93d1b2f887b42ad59168a9fcbe75bdaaf87 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Tue, 15 Apr 2025 23:27:01 +0100 Subject: Docs: Synchronise ``indexsidebar.html`` with docsbuild-scripts (#132567) --- Doc/tools/templates/_docs_by_version.html | 11 +++++++++++ Doc/tools/templates/indexsidebar.html | 5 ++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 Doc/tools/templates/_docs_by_version.html diff --git a/Doc/tools/templates/_docs_by_version.html b/Doc/tools/templates/_docs_by_version.html new file mode 100644 index 0000000..1a84cfb --- /dev/null +++ b/Doc/tools/templates/_docs_by_version.html @@ -0,0 +1,11 @@ +{# +This file is only used in indexsidebar.html, where it is included in the docs +by version list. For non-end-of-life branches, build_docs.py overwrites this +list with the full list of versions. + +Keep the following two files synchronised: +* cpython/Doc/tools/templates/_docs_by_version.html +* docsbuild-scripts/templates/_docs_by_version.html +#} +
  • {% trans %}Stable{% endtrans %}
  • +
  • {% trans %}In development{% endtrans %}
  • diff --git a/Doc/tools/templates/indexsidebar.html b/Doc/tools/templates/indexsidebar.html index 5986204..eea29e2 100644 --- a/Doc/tools/templates/indexsidebar.html +++ b/Doc/tools/templates/indexsidebar.html @@ -2,11 +2,10 @@

    {% trans %}Download these documents{% endtrans %}

    {% trans %}Docs by version{% endtrans %}

    -

    {% trans %}Other resources{% endtrans %}