From 9ae25b55610547141e4292db46c46ab16b7dbdba Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 7 Apr 2025 15:43:25 +0300 Subject: [PATCH 1/2] Remove self-closing tags https://developer.mozilla.org/en-US/docs/Glossary/Void_element\#self-closing_tags --- Doc/conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/conf.py b/Doc/conf.py index cfd8b3a16dc8f7..467961dd5e2bff 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -631,12 +631,12 @@ 'line_color': '#3776ab', } ogp_custom_meta_tags = [ - '', + '', ] if 'create-social-cards' not in tags: # noqa: F821 # Define a static preview image when not creating social cards ogp_image = '_static/og-image.png' ogp_custom_meta_tags += [ - '', - '', + '', + '', ] From bb98b484cdfe239631533059d60b72b825d3e46f Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Mon, 7 Apr 2025 16:13:39 +0100 Subject: [PATCH 2/2] Remove more trailing slashes --- Doc/includes/email-alternative.py | 2 +- Doc/tools/templates/indexcontent.html | 34 +++++++++++++-------------- Doc/tools/templates/layout.html | 2 +- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Doc/includes/email-alternative.py b/Doc/includes/email-alternative.py index 26b302b495c7ac..afe2b4fbb5eb3f 100644 --- a/Doc/includes/email-alternative.py +++ b/Doc/includes/email-alternative.py @@ -36,7 +36,7 @@ recette sera sûrement un très bon repas.

- + """.format(asparagus_cid=asparagus_cid[1:-1]), subtype='html') diff --git a/Doc/tools/templates/indexcontent.html b/Doc/tools/templates/indexcontent.html index 2686f48dad2a95..0d25dd45e9a0c7 100644 --- a/Doc/tools/templates/indexcontent.html +++ b/Doc/tools/templates/indexcontent.html @@ -10,30 +10,30 @@

{{ docstitle|e }}

{% trans %}Documentation sections:{% endtrans %}

- - - - - - - - - - - -
@@ -41,16 +41,16 @@

{{ docstitle|e }}

{% trans %}Indices, glossary, and search:{% endtrans %}

- - - - -
diff --git a/Doc/tools/templates/layout.html b/Doc/tools/templates/layout.html index b09fd21a8ddcc9..10a87f50d8566b 100644 --- a/Doc/tools/templates/layout.html +++ b/Doc/tools/templates/layout.html @@ -29,7 +29,7 @@ {% if builder == "html" and enable_analytics %} {% endif %} - + {% if builder != "htmlhelp" %} {% if pagename == 'whatsnew/changelog' and not embedded %} {% endif %}