From 95134919673c13112574ac50c1bc96ad1e6f2b33 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Fri, 22 Mar 2024 13:40:05 +0200 Subject: [PATCH 1/8] Exclude bots from generated release notes --- .github/release.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .github/release.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 00000000..9d1e0987 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,5 @@ +changelog: + exclude: + authors: + - dependabot + - pre-commit-ci From fe6a24363611175387dab379b6125d9190ffd7d4 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 25 Mar 2024 15:43:38 +0200 Subject: [PATCH 2/8] Only show 'Last updated on ...' when last_updated defined --- python_docs_theme/layout.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python_docs_theme/layout.html b/python_docs_theme/layout.html index d387ef38..a661961a 100644 --- a/python_docs_theme/layout.html +++ b/python_docs_theme/layout.html @@ -149,7 +149,9 @@

{{ _('Navigation') }}

{% include "footerdonate.html" %}
- {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %} + {%- if last_updated %} + {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %} + {%- endif %} {% if theme_issues_url %}{% trans %}Found a bug?{% endtrans %}{% endif %}
From 5c6c0b4856b6c344591c6cb97a004e5db68f0b01 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 25 Mar 2024 15:51:05 +0200 Subject: [PATCH 3/8] Add newlines to make if blocks clear --- python_docs_theme/layout.html | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/python_docs_theme/layout.html b/python_docs_theme/layout.html index a661961a..9762b06c 100644 --- a/python_docs_theme/layout.html +++ b/python_docs_theme/layout.html @@ -136,14 +136,24 @@

{{ _('Navigation') }}

{% block footer %}