searchbox.html 800 B

12345678910111213141516171819202122
  1. {#
  2. basic/searchbox.html
  3. ~~~~~~~~~~~~~~~~~~~~
  4. Sphinx sidebar template: quick search box.
  5. :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
  6. :license: BSD, see LICENSE for details.
  7. #}
  8. {%- if pagename != "search" and builder != "singlehtml" %}
  9. <div id="searchbox" style="display: none" role="search">
  10. <div class="searchformwrapper">
  11. <form class="search" action="{{ pathto('search') }}" method="get">
  12. <input type="text" name="q" placeholder="{{ _('Search the docs') }}" />
  13. <input type="submit" value="{{ _('Go') }}" />
  14. <input type="hidden" name="check_keywords" value="yes" />
  15. <input type="hidden" name="area" value="default" />
  16. </form>
  17. </div>
  18. </div>
  19. <script type="text/javascript">$('#searchbox').show(0);</script>
  20. {%- endif %}