]> granicus.if.org Git - python/commitdiff
remove script from epub (closes #26172)
authorBenjamin Peterson <benjamin@python.org>
Thu, 21 Jan 2016 06:02:30 +0000 (22:02 -0800)
committerBenjamin Peterson <benjamin@python.org>
Thu, 21 Jan 2016 06:02:30 +0000 (22:02 -0800)
Doc/tools/templates/layout.html

index 5abff1b3989f06260793ecc804c680aa89f270f0..8ae6e23f80d2c8a9b147d93ae90462ce2e97bfdd 100644 (file)
@@ -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