From 4e132c2b42d63ccf00ebcd16a101f6f68b630d76 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Benjamin=20Cab=C3=A9?=
Date: Thu, 5 Sep 2024 11:11:22 +0200
Subject: [PATCH] doc: Rework footer
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
There is likely no need for the footer to be so prominently asking folks
to report issues with a page based on the number of issues that have
been reported in the past year or so.
This change makes the footer less crowded and saves some vertical space.
Signed-off-by: Benjamin Cabé
---
doc/_static/css/custom.css | 5 +++++
doc/_templates/footer.html | 26 +++++++-------------------
2 files changed, 12 insertions(+), 19 deletions(-)
diff --git a/doc/_static/css/custom.css b/doc/_static/css/custom.css
index 94b9043ed4d..2473675fa54 100644
--- a/doc/_static/css/custom.css
+++ b/doc/_static/css/custom.css
@@ -883,6 +883,11 @@ dark-mode-toggle::part(toggleLabel){
color: white;
}
+.lastupdated {
+ font-weight: 200;
+ font-size: 0.9rem;
+}
+
/* Custom search box, including search engine selection */
.search-container {
diff --git a/doc/_templates/footer.html b/doc/_templates/footer.html
index 757bb27529d..9dacea7113d 100644
--- a/doc/_templates/footer.html
+++ b/doc/_templates/footer.html
@@ -6,25 +6,13 @@
{%- endif %}
{%- if last_updated %}
-
- Last generated on {{ last_updated }}.
-
+
+ Last generated: {{ last_updated }}.
+ {%- set git_last_updated, sha1 = pagename | git_info | default((None, None), true) %}
+ {%- if git_last_updated %}
+ Last source update: {{ git_last_updated }}.
+ {%- endif %}
+
{%- endif -%}
-{%- set git_last_updated, sha1 = pagename | git_info | default((None, None), true) %}
-{%- if git_last_updated %}
-
-
- Help us keep our technical documentation accurate and up-to-date!
-
-
- The human-authored contents on this page was last updated on {{ git_last_updated }}.
-
-
- If you find any errors on this page, outdated information, or have any other suggestion for
- improving its contents, please consider
- opening an issue.
-
-
-{%- endif %}
{% endblock %}