Skip to content

Commit

Permalink
Hide the search box on any "singlehtml" like builder (#975)
Browse files Browse the repository at this point in the history
- This applies to the RTD builders readthedocssinglehtml
  and readthedocssinglehtmllocalmedia

Co-authored-by: Aaron Carlisle <carlisle.b3d@gmail.com>
  • Loading branch information
davidfischer and Blendify authored Nov 28, 2020
1 parent e2b1042 commit 24ceb6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx_rtd_theme/searchbox.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{%- if builder != 'singlehtml' %}
{%- if 'singlehtml' not in builder %}
<div role="search">
<form id="rtd-search-form" class="wy-form" action="{{ pathto('search') }}" method="get">
<input type="text" name="q" placeholder="{{ _('Search docs') }}" />
Expand Down

0 comments on commit 24ceb6d

Please # to comment.