Commits

Georg Brandl committed 0f5d569

Closes #1147: Don't emit a sidebar search box in the "singlehtml" builder.

Comments (0)

Files changed (2)

 * #1323: Fix emitting empty ``<ul>`` tags in the HTML writer, which is not
   valid HTML.
 
+* #1147: Don't emit a sidebar search box in the "singlehtml" builder.
+
 Documentation
 -------------
 

sphinx/themes/basic/searchbox.html

     :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS.
     :license: BSD, see LICENSE for details.
 #}
-{%- if pagename != "search" %}
+{%- if pagename != "search" and builder != "singlehtml" %}
 <div id="searchbox" style="display: none">
   <h3>{{ _('Quick search') }}</h3>
     <form class="search" action="{{ pathto('search') }}" method="get">