Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions sphinx/themes/basic/searchbox.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{# Sphinx sidebar template: quick search box. #}
{%- if pagename != "search" and builder != "singlehtml" %}
<search id="searchbox" style="display: none" role="search">
<search id="searchbox" role="search">
<h3 id="searchlabel">{{ _('Quick search') }}</h3>
<div class="searchformwrapper">
<form class="search" action="{{ pathto('search') }}" method="get">
Expand All @@ -9,5 +9,4 @@ <h3 id="searchlabel">{{ _('Quick search') }}</h3>
</form>
</div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>
{%- endif %}
3 changes: 1 addition & 2 deletions sphinx/themes/basic/searchfield.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
in the search field.
#}
{%- if pagename != "search" and builder != "singlehtml" %}
<search id="searchbox" style="display: none" role="search">
<search id="searchbox" role="search">
<div class="searchformwrapper">
<form class="search" action="{{ pathto('search') }}" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" placeholder="Search"/>
<input type="submit" value="{{ _('Go') }}" />
</form>
</div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>
{%- endif %}
Loading