From: Maciej Olko Date: Wed, 14 May 2025 14:03:07 +0000 (+0200) Subject: Docs: remove link elements in builders other than HTML (#133720) X-Git-Tag: v3.15.0a1~1724 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0afbd4e42ac28240b484cabe1710fdb6c572fb1f;p=thirdparty%2FPython%2Fcpython.git Docs: remove link elements in builders other than HTML (#133720) Fixes epub build --- 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 %}