Skip to content

Docs: Synchronise indexsidebar.html with docsbuild-scripts #132567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Docs: Synchronise indexsidebar.html with docsbuild-scripts
  • Loading branch information
AA-Turner committed Apr 15, 2025
commit e0ed03d6952e70bc7f24c3bed624d06cadf7344c
11 changes: 11 additions & 0 deletions Doc/tools/templates/_docs_by_version.html
Original file line number Diff line number Diff line change
@@ -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
#}
<li><a href="https://docs.python.org/3/">{% trans %}Stable{% endtrans %}</a></li>
<li><a href="https://docs.python.org/dev/">{% trans %}In development{% endtrans %}</a></li>
5 changes: 2 additions & 3 deletions Doc/tools/templates/indexsidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ <h3>{% trans %}Download{% endtrans %}</h3>
<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/">{% trans %}Stable{% endtrans %}</a></li>
<li><a href="https://docs.python.org/dev/">{% trans %}In development{% endtrans %}</a></li>
{# _docs_by_version.html is overwritten by build_docs.py for non-EOL versions #}
{% include "_docs_by_version.html" without context %}
<li><a href="https://www.python.org/doc/versions/">{% trans %}All versions{% endtrans %}</a></li>
</ul>

<h3>{% trans %}Other resources{% endtrans %}</h3>
<ul>
{# XXX: many of these should probably be merged in the main docs #}
Expand Down
Loading