1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Adding support for opensearch of documentation (#38593)

This commit is contained in:
Lucid One 2018-04-25 21:01:26 -04:00 committed by scottb
parent aac3020770
commit 40fcef3e41
2 changed files with 10 additions and 1 deletions

View file

@ -0,0 +1,9 @@
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Ansible</ShortName>
<Description>Search Ansible Documentation</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">https://docs.ansible.com/favicon.ico</Image>
<Url type="text/html" method="get" template="https://docs.ansible.com/ansible/latest/search.html?q={searchTerms}&amp;ref=opensearch"/>
<moz:SearchForm>https://docs.ansible.com/ansible/latest/search.html</moz:SearchForm>
</OpenSearchDescription>

View file

@ -183,7 +183,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 = '' 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 = ''