]> granicus.if.org Git - python/commitdiff
#14114: don't include copybutton.js in the htmlhelp output.
authorEzio Melotti <ezio.melotti@gmail.com>
Sat, 25 Feb 2012 17:24:24 +0000 (19:24 +0200)
committerEzio Melotti <ezio.melotti@gmail.com>
Sat, 25 Feb 2012 17:24:24 +0000 (19:24 +0200)
Doc/tools/sphinxext/layout.html

index 8659ef0364c458be1cbd6b2f9b7916edfd743ec2..d4bb105e831370d3a3052142fc928261b2642b94 100644 (file)
@@ -6,7 +6,7 @@
 {% endblock %}
 {% block extrahead %}
     <link rel="shortcut icon" type="image/png" href="{{ pathto('_static/py.png', 1) }}" />
-    <script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>
+    {% if not embedded %}<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>{% endif %}
 {{ super() }}
 {% endblock %}
 {% block footer %}