diff options
Diffstat (limited to 'lib/spack/docs/_themes/sphinx_rtd_theme/searchbox.html')
-rw-r--r-- | lib/spack/docs/_themes/sphinx_rtd_theme/searchbox.html | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/spack/docs/_themes/sphinx_rtd_theme/searchbox.html b/lib/spack/docs/_themes/sphinx_rtd_theme/searchbox.html index f62545ea57..35ad52c5f6 100644 --- a/lib/spack/docs/_themes/sphinx_rtd_theme/searchbox.html +++ b/lib/spack/docs/_themes/sphinx_rtd_theme/searchbox.html @@ -1,5 +1,9 @@ -<form id ="rtd-search-form" class="wy-form" action="{{ pathto('search') }}" method="get"> - <input type="text" name="q" placeholder="Search docs" /> - <input type="hidden" name="check_keywords" value="yes" /> - <input type="hidden" name="area" value="default" /> -</form> +{%- if builder != 'singlehtml' %} +<div role="search"> + <form id="rtd-search-form" class="wy-form" action="{{ pathto('search') }}" method="get"> + <input type="text" name="q" placeholder="Search docs" /> + <input type="hidden" name="check_keywords" value="yes" /> + <input type="hidden" name="area" value="default" /> + </form> +</div> +{%- endif %} |