Trim down to one Ansible search option (#66284)

* move swiftype search to upper left of docsite, fix spacing and length issues for search icon and searchbox
pull/66379/head
Sandra McCann 5 years ago committed by Alicia Cozine
parent 22be69188b
commit 1a0724fdd4

File diff suppressed because one or more lines are too long

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

@ -144,7 +144,7 @@
{% endif %}
{% include "ansible_versions.html" %}
{% include "searchbox.html" %}
{% include "ansible_searchbox.html" %}
{% endblock %}
</div>

@ -1,7 +1,7 @@
{%- 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') }}" />
<form id="rtd-search-form" class="wy-form" action="{{ pathto('search') }}"
<input type="text" name="q" placeholder="{{ _(' Search') }}" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>

@ -206,7 +206,7 @@ html_copy_source = False
# If true, an OpenSearch description file will be output, and all pages will
# contain a <link> tag referring to it. The value of this option must be the
# base URL from which the finished HTML is served.
html_use_opensearch = 'https://docs.ansible.com/ansible/latest'
# html_use_opensearch = 'https://docs.ansible.com/ansible/latest'
# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
# html_file_suffix = ''

Loading…
Cancel
Save