]> granicus.if.org Git - python/commitdiff
Closes #21045: make the Qt help build not look completely stupid
authorGeorg Brandl <georg@python.org>
Tue, 25 Mar 2014 09:12:47 +0000 (10:12 +0100)
committerGeorg Brandl <georg@python.org>
Tue, 25 Mar 2014 09:12:47 +0000 (10:12 +0100)
Doc/tools/sphinxext/layout.html

index 4b16b3f741ef3ec255a84b241fec0d14cbb13a0b..f24dc8c7551c4230187491869970dcd928d5d556 100644 (file)
           {%- endif %}
         </li>
 {% endblock %}
+{% block relbar1 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %}
+{% block relbar2 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %}
 {% block extrahead %}
     <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 %}
 {{ super() }}
+    {% if builder == 'qthelp' %}
+    <style type="text/css">
+    body { background-color: white; }
+    div.document { background-color: white; }
+    </style>
+    {% endif %}
 {% endblock %}
 {% block footer %}
     <div class="footer">