From e2a5e54d6d6b83dfca30f50c94ec726d0270d423 Mon Sep 17 00:00:00 2001 From: Carol Willing Date: Fri, 7 May 2021 15:46:23 -0700 Subject: [PATCH 001/241] Release 2021.5 --- CHANGELOG.rst | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 117d60db..dbecee7e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,7 +2,7 @@ Changelog ========= -`2021.05 `_ +`2021.5 `_ ------------------------------------------------------------------------------ - Make the theme responsive (#46) diff --git a/setup.py b/setup.py index a74f3b66..a2d5d728 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ name='python-docs-theme', # Version is date based as year.month[.serial], where serial is used # if multiple releases are needed to address build failures. - version='2021.05', + version='2021.5', description='The Sphinx theme for the CPython docs and related projects', long_description=long_description, author='PyPA', From 4c5a89a0b0050cfacf96444215737767de979d09 Mon Sep 17 00:00:00 2001 From: Carol Willing Date: Fri, 7 May 2021 15:56:49 -0700 Subject: [PATCH 002/241] Back to dev version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a2d5d728..62cbe862 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ name='python-docs-theme', # Version is date based as year.month[.serial], where serial is used # if multiple releases are needed to address build failures. - version='2021.5', + version='2021.5.dev', description='The Sphinx theme for the CPython docs and related projects', long_description=long_description, author='PyPA', From b77519b5ee91e75e37ff94b441530e75ad60f39b Mon Sep 17 00:00:00 2001 From: Carol Willing Date: Fri, 7 May 2021 16:45:30 -0700 Subject: [PATCH 003/241] Add release 2018.7 information to changelog Closes #51 --- CHANGELOG.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index dbecee7e..f394c9f3 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -35,6 +35,11 @@ Changelog - Fixed code bgcolor and codetextcolor for Sphinx 3.1.0+ (#57) Contributed by Zhiming Wang. +2018.7 +------ +Corresponds to `44a8f30 `_ + + `2018.2 `_ --------------------------------------------------------------------------- From 053ee9a01296d3bdce5680b9074e46392bfa361c Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Wed, 12 May 2021 10:52:42 +0300 Subject: [PATCH 004/241] Fix the appearance of version/language selects (#74) * Fix the appearance of version/language selects The appearance:none needs a -webkit prefix to work in Safari and Chrome on Android. Adding padding to the select's outer div fixes arrow overlapping with the select's value. Adding outline offset for focus-visible makes the outline go around the border instead of within it (just around the inner select itself). * Fix search form overflow; readability improvements * Fix search box and select appearances Some problems in Safari mobile browser were fixed: right margin on the search box (between the button and the border), color of the button; Language and version switchers in both Chrome for Android and Safari had gray background. * Fix search button border --- python_docs_theme/static/pydoctheme.css | 33 +++++++++++++++++++------ 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/python_docs_theme/static/pydoctheme.css b/python_docs_theme/static/pydoctheme.css index be98ed36..d3cd2dac 100644 --- a/python_docs_theme/static/pydoctheme.css +++ b/python_docs_theme/static/pydoctheme.css @@ -235,6 +235,14 @@ dl > dt span ~ em { div.body h3, div.body h4, div.body h5 { font-size: 1rem; } + /* Override default styles to make more readable */ + div.body ul { + padding-inline-start: 1rem; + } + div.body blockquote { + margin-inline-start: 1rem; + margin-inline-end: 0; + } /* Remove sidebar and top related bar */ div.related, .sphinxsidebar { display: none; @@ -266,6 +274,7 @@ dl > dt span ~ em { top: 0; height: 40px; width: 100%; + max-width: 100vw; padding: 0 1rem 0 45px; display: flex; align-items: center; @@ -284,10 +293,6 @@ dl > dt span ~ em { flex: 0 1 0; margin-right: 1rem; } - .version_switcher_placeholder select { - height: 30px; - border-radius: 0; - } .nav-content .search { display: flex; flex: 1 1 auto; @@ -311,10 +316,17 @@ dl > dt span ~ em { } .nav-content .search input[type=submit] { height: 100%; - border: 0; + appearance: none; + -webkit-appearance: none; + border: 1px solid transparent; + border-left-color: #a9a9a9; box-shadow: none; - outline: 1px solid #999; cursor: pointer; + background-color: #f0f0f0; + margin-right: 0; + } + .nav-content .search input[type=submit]:hover { + border-color: #a9a9a9; } .nav-content .search svg { flex: 0 0 20px; @@ -454,6 +466,7 @@ dl > dt span ~ em { position: relative; border: 1px solid #a8a8a8; height: 30px; + padding-right: 7px; } .language_switcher_placeholder { margin-top: 2rem; @@ -465,14 +478,20 @@ dl > dt span ~ em { top: 7px; width: 15px; height: 15px; - right: 3px; + right: 0; pointer-events: none; } .language_switcher_placeholder select, .version_switcher_placeholder select { + -webkit-appearance: none; appearance: none; border: 0; height: 100%; + background-color: white; + } + .language_switcher_placeholder:focus-visible, + .version_switcher_placeholder:focus-visible { + outline-offset: 5px; } .language_switcher_placeholder select { width: 100%; From 4dcc3b48ed9189c098785e020f1bcde0ad74cb7b Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Wed, 12 May 2021 10:56:56 +0300 Subject: [PATCH 005/241] Remove #searchbox on mobile to fix a layout bug (#76) --- python_docs_theme/layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_docs_theme/layout.html b/python_docs_theme/layout.html index 8a0d65d4..6befb03f 100644 --- a/python_docs_theme/layout.html +++ b/python_docs_theme/layout.html @@ -90,7 +90,7 @@

{{ _('Navigation') }}

{%- if pagename != "search" and builder != "singlehtml" %} -