Skip to content

Commit 7ff7f97

Browse files
committed
remove script from epub (closes #26172)
1 parent 8562a6b commit 7ff7f97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tools/templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<link rel="shortcut icon" type="image/png" href="{{ pathto('_static/py.png', 1) }}" />
1919
{% if not embedded %}<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>{% endif %}
2020
{% if versionswitcher is defined and not embedded %}<script type="text/javascript" src="{{ pathto('_static/version_switch.js', 1) }}"></script>{% endif %}
21-
{% if pagename == 'whatsnew/changelog' %}
21+
{% if pagename == 'whatsnew/changelog' and not embedded %}
2222
<script type="text/javascript">
2323
$(document).ready(function() {
2424
// add the search form and bind the events

0 commit comments

Comments
 (0)