From c836f717cd73be8bcc9a0d09ba2d048bca9549f6 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson <benjamin@python.org> Date: Wed, 20 Jan 2016 22:02:30 -0800 Subject: [PATCH] remove script from epub (closes #26172) --- Doc/tools/templates/layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tools/templates/layout.html b/Doc/tools/templates/layout.html index 5abff1b398..8ae6e23f80 100644 --- a/Doc/tools/templates/layout.html +++ b/Doc/tools/templates/layout.html @@ -18,7 +18,7 @@ <link rel="shortcut icon" type="image/png" href="{{ pathto('_static/py.png', 1) }}" /> {% if not embedded %}<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>{% endif %} {% if versionswitcher is defined and not embedded %}<script type="text/javascript" src="{{ pathto('_static/version_switch.js', 1) }}"></script>{% endif %} - {% if pagename == 'whatsnew/changelog' %} + {% if pagename == 'whatsnew/changelog' and not embedded %} <script type="text/javascript"> $(document).ready(function() { // add the search form and bind the events -- 2.40.0