From 375517fec87a4c1283216c423771dd6c469dd9af Mon Sep 17 00:00:00 2001
From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Date: Fri, 26 Jan 2024 15:38:21 +0200
Subject: [PATCH 1/2] Add hosted_on variable for a link in the footer
---
python_docs_theme/layout.html | 3 +++
python_docs_theme/theme.conf | 1 +
2 files changed, 4 insertions(+)
diff --git a/python_docs_theme/layout.html b/python_docs_theme/layout.html
index 81433e0..c0d81dc 100644
--- a/python_docs_theme/layout.html
+++ b/python_docs_theme/layout.html
@@ -143,6 +143,9 @@
{{ _('Navigation') }}
{% trans %}Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.{% endtrans %}
{% if theme_license_url %}{% trans license_file=theme_license_url %}See History and License for more information.{% endtrans %}
{% endif %}
+ {% if theme_hosted_on %}
+ {% trans hosted_on=theme_hosted_on %}Hosted on {{ hosted_on }}.{% endtrans %}
+ {% endif %}
{% include "footerdonate.html" %}
diff --git a/python_docs_theme/theme.conf b/python_docs_theme/theme.conf
index e6008d9..1fbcabc 100644
--- a/python_docs_theme/theme.conf
+++ b/python_docs_theme/theme.conf
@@ -26,6 +26,7 @@ headlinkcolor = #aaaaaa
codebgcolor = #eeffcc
codetextcolor = #333333
+hosted_on =
issues_url =
license_url =
root_name = Python
From 1dc112bc9a4861b4bfae6d25b34b3798c2363d2c Mon Sep 17 00:00:00 2001
From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Date: Fri, 26 Jan 2024 16:08:30 +0200
Subject: [PATCH 2/2] Single line
---
python_docs_theme/layout.html | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/python_docs_theme/layout.html b/python_docs_theme/layout.html
index c0d81dc..d387ef3 100644
--- a/python_docs_theme/layout.html
+++ b/python_docs_theme/layout.html
@@ -143,9 +143,7 @@ {{ _('Navigation') }}
{% trans %}Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.{% endtrans %}
{% if theme_license_url %}{% trans license_file=theme_license_url %}See History and License for more information.{% endtrans %}
{% endif %}
- {% if theme_hosted_on %}
- {% trans hosted_on=theme_hosted_on %}Hosted on {{ hosted_on }}.{% endtrans %}
- {% endif %}
+ {% if theme_hosted_on %}{% trans hosted_on=theme_hosted_on %}Hosted on {{ hosted_on }}.{% endtrans %}
{% endif %}
{% include "footerdonate.html" %}