Kaydet (Commit) 4f1f36bc authored tarafından Georg Brandl's avatar Georg Brandl

Add OpenSearch and a Python logo to the HTML output.

üst f19a7b90
......@@ -85,6 +85,12 @@ html_additional_pages = {
'index': 'indexcontent.html',
}
# Output an OpenSearch description file.
html_use_opensearch = True
# Additional static files.
html_static_path = ['tools/sphinxext/static']
# Output file base name for HTML help builder.
htmlhelp_basename = 'python' + release.replace('.', '')
......
{% extends "!layout.html" %}
{% block rootrellink %}
<li><img src="{{ pathto('_static/py.png', 1) }}" alt="" style="vertical-align: middle; margin-top: -1px"/></li>
{{ super() }}
{% endblock %}
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Python Docs</ShortName>
<LongName>Python Documentation</LongName>
<Description>Search the Python documentation</Description>
<InputEncoding>utf-8</InputEncoding>
<Url type="text/html" method="get" template="{{ pathto('search') }}?">
<Param name="q" value="{searchTerms}" />
<Param name="check_keywords" value="yes" />
<Param name="area" value="default" />
</Url>
<Image height="16" width="16" type="image/x-icon">http://www.python.org/images/favicon16x16.ico</Image>
</OpenSearchDescription>
This diff was suppressed by a .gitattributes entry.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment