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
This commit is contained in:
parent
22be69188b
commit
1a0724fdd4
5 changed files with 15 additions and 5 deletions
File diff suppressed because one or more lines are too long
10
docs/docsite/_themes/sphinx_rtd_theme/ansible_searchbox.html
Normal file
10
docs/docsite/_themes/sphinx_rtd_theme/ansible_searchbox.html
Normal file
|
@ -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 %}
|
{% endif %}
|
||||||
|
|
||||||
{% include "ansible_versions.html" %}
|
{% include "ansible_versions.html" %}
|
||||||
{% include "searchbox.html" %}
|
{% include "ansible_searchbox.html" %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{%- if builder != 'singlehtml' %}
|
{%- if builder != 'singlehtml' %}
|
||||||
<div role="search">
|
<div role="search">
|
||||||
<form id="rtd-search-form" class="wy-form" action="{{ pathto('search') }}" method="get">
|
<form id="rtd-search-form" class="wy-form" action="{{ pathto('search') }}"
|
||||||
<input type="text" name="q" placeholder="{{ _('Search docs') }}" />
|
<input type="text" name="q" placeholder="{{ _(' Search') }}" />
|
||||||
<input type="hidden" name="check_keywords" value="yes" />
|
<input type="hidden" name="check_keywords" value="yes" />
|
||||||
<input type="hidden" name="area" value="default" />
|
<input type="hidden" name="area" value="default" />
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -206,7 +206,7 @@ html_copy_source = False
|
||||||
# If true, an OpenSearch description file will be output, and all pages will
|
# 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
|
# contain a <link> tag referring to it. The value of this option must be the
|
||||||
# base URL from which the finished HTML is served.
|
# 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").
|
# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
|
||||||
# html_file_suffix = ''
|
# html_file_suffix = ''
|
||||||
|
|
Loading…
Reference in a new issue