diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b275b762..cbf57d4d 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,16 @@ Changelog ========= +`2023.8 `_ +---------------------------------------------------------------------------- + +- Add Python 3.12 and 3.13 classifiers (#147) + Contributed by Hugo van Kemenade +- Dark mode: Also give aside.topic a dark background (#150) + Contributed by Hugo van Kemenade +- Restore the menu on mobile devices (inadvertently broken in 2023.7) (#146) + Contributed by Hugo van Kemenade + `2023.7 `_ ---------------------------------------------------------------------------- @@ -12,7 +22,7 @@ Changelog - Sphinx 6.2 fix: add ``nav.contents`` where ``div.topic`` is used (#138) Contributed by Hugo van Kemenade - Dark mode: fix contrast for C++ specific styling (#133) - Contributed by Hugo van Kemenade + Contributed by Hugo van Kemenade - Don't let long code literals extend beyond the right side of the screen (#139) Contributed by Hugo van Kemenade - Test with Python 3.12 (#140) diff --git a/pyproject.toml b/pyproject.toml index b4179d1f..9be4a241 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi" # project metadata [project] name = "python-docs-theme" -version = "2023.7" +version = "2023.8" description = "The Sphinx theme for the CPython docs and related projects" readme = "README.rst" urls.Code = "https://github.com/python/python-docs-theme" @@ -30,6 +30,8 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ] [[project.authors]] diff --git a/python_docs_theme/layout.html b/python_docs_theme/layout.html index f8304917..b4502ba4 100644 --- a/python_docs_theme/layout.html +++ b/python_docs_theme/layout.html @@ -82,7 +82,12 @@

{{ _('Navigation') }}

{{ super() }} {%- endblock -%} -{%- block document %} +{%- block css -%} + + {{ super() }} +{%- endblock -%} + +{%- block body_tag %} {{ super() }} {%- if builder != 'htmlhelp' %}
diff --git a/python_docs_theme/static/pydoctheme_dark.css b/python_docs_theme/static/pydoctheme_dark.css index 49a29e3d..46a2c7aa 100644 --- a/python_docs_theme/static/pydoctheme_dark.css +++ b/python_docs_theme/static/pydoctheme_dark.css @@ -103,6 +103,7 @@ div.warning { background-color: rgba(255, 0, 0, 0.5); } +aside.topic, div.topic, div.note, nav.contents {