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

This commit is contained in:
Georg Brandl
2014-01-19 18:40:00 +01:00
parent 7a74fe81b1
commit 63b4f3bfae
2 changed files with 3 additions and 1 deletions

View File

@@ -122,6 +122,8 @@ Bugs fixed
* #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
-------------

View File

@@ -7,7 +7,7 @@
: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">