Merge pull request #155 from bendiken/singlehtml

Hide the superfluous and broken search box in single-page HTML builds
This commit is contained in:
Eric Holscher 2014-12-02 14:45:58 -08:00
commit 15519f23fc

View File

@ -1,7 +1,9 @@
{%- if builder != 'singlehtml' %}
<div role="search"> <div role="search">
<form id ="rtd-search-form" class="wy-form" action="{{ pathto('search') }}" method="get"> <form id="rtd-search-form" class="wy-form" action="{{ pathto('search') }}" method="get">
<input type="text" name="q" placeholder="Search docs" /> <input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" /> <input type="hidden" name="area" value="default" />
</form> </form>
</div> </div>
{%- endif %}