From ce724571b35f4e79fff1c862fcd9afa4c26b605f Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 7 Apr 2025 18:21:13 +0300 Subject: [PATCH] Docs HTML: Remove self-closing tags (#132220) Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com> --- Doc/conf.py | 6 ++--- Doc/includes/email-alternative.py | 2 +- Doc/tools/templates/indexcontent.html | 34 +++++++++++++-------------- Doc/tools/templates/layout.html | 2 +- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Doc/conf.py b/Doc/conf.py index cfd8b3a16dc8..467961dd5e2b 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -631,12 +631,12 @@ ogp_social_cards = { # Used when matplotlib is installed '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 += [ - '', - '', + '', + '', ] diff --git a/Doc/includes/email-alternative.py b/Doc/includes/email-alternative.py index 26b302b495c7..afe2b4fbb5eb 100644 --- a/Doc/includes/email-alternative.py +++ b/Doc/includes/email-alternative.py @@ -36,7 +36,7 @@ msg.add_alternative("""\ 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 2686f48dad2a..0d25dd45e9a0 100644 --- a/Doc/tools/templates/indexcontent.html +++ b/Doc/tools/templates/indexcontent.html @@ -10,30 +10,30 @@

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

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

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

- - - - -
diff --git a/Doc/tools/templates/layout.html b/Doc/tools/templates/layout.html index b09fd21a8ddc..10a87f50d856 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 %} -- 2.47.3