[Python-checkins] cpython (3.2): #14114: don't include copybutton.js in the htmlhelp output.

georg.brandl python-checkins at python.org
Sun Mar 18 20:40:09 CET 2012


http://hg.python.org/cpython/rev/b585c33077d2
changeset:   75813:b585c33077d2
branch:      3.2
parent:      75243:7615f497881a
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Sat Feb 25 19:24:24 2012 +0200
summary:
  #14114: don't include copybutton.js in the htmlhelp output.

files:
  Doc/tools/sphinxext/layout.html |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/tools/sphinxext/layout.html b/Doc/tools/sphinxext/layout.html
--- a/Doc/tools/sphinxext/layout.html
+++ b/Doc/tools/sphinxext/layout.html
@@ -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 %}

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list