From 0afbd4e42ac28240b484cabe1710fdb6c572fb1f 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 (#133720) Fixes epub build --- 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 56023ebf9627..1cb0200822d9 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 %} -- 2.47.3