From: Georg Brandl Date: Sun, 27 Apr 2008 20:03:05 +0000 (+0000) Subject: Add OpenSearch and a Python logo to the HTML output. X-Git-Tag: v2.6a3~88 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f1f36bcabe098394934ac7cac84c1f26fff2c86;p=python Add OpenSearch and a Python logo to the HTML output. --- diff --git a/Doc/conf.py b/Doc/conf.py index 45d40fbd43..e4641ea1bb 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -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('.', '') diff --git a/Doc/tools/sphinxext/layout.html b/Doc/tools/sphinxext/layout.html new file mode 100644 index 0000000000..689cbdace0 --- /dev/null +++ b/Doc/tools/sphinxext/layout.html @@ -0,0 +1,5 @@ +{% extends "!layout.html" %} +{% block rootrellink %} +
  • +{{ super() }} +{% endblock %} diff --git a/Doc/tools/sphinxext/opensearch.xml b/Doc/tools/sphinxext/opensearch.xml new file mode 100644 index 0000000000..d672c2e2b8 --- /dev/null +++ b/Doc/tools/sphinxext/opensearch.xml @@ -0,0 +1,14 @@ + + + Python Docs + Python Documentation + Search the Python documentation + utf-8 + + + + + + http://www.python.org/images/favicon16x16.ico + + diff --git a/Doc/tools/sphinxext/static/py.png b/Doc/tools/sphinxext/static/py.png new file mode 100644 index 0000000000..93e4a02c3d Binary files /dev/null and b/Doc/tools/sphinxext/static/py.png differ