From cfd0ee5332f19a6ff9a6d1b65654706964b6808c Mon Sep 17 00:00:00 2001 From: Maciej Olko Date: Wed, 14 May 2025 16:03:07 +0200 Subject: [PATCH] Docs: remove link elements in builders other than HTML (GH-133720) Fixes epub build (cherry picked from commit 0afbd4e42ac28240b484cabe1710fdb6c572fb1f) Co-authored-by: Maciej Olko --- Doc/tools/templates/layout.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/tools/templates/layout.html b/Doc/tools/templates/layout.html index 56023ebf962703..1cb0200822d9fe 100644 --- a/Doc/tools/templates/layout.html +++ b/Doc/tools/templates/layout.html @@ -26,11 +26,11 @@ {% endblock %} {% block extrahead %} - {% if builder == "html" and enable_analytics %} + {% if builder == "html" %} + {% if enable_analytics %} - {% endif %} - - {% if builder != "htmlhelp" %} + {% endif %} + {% if pagename == 'whatsnew/changelog' and not embedded %} {% endif %} {% endif %}