From: Georg Brandl Date: Sat, 3 May 2008 20:52:18 +0000 (+0000) Subject: Merge OpenSearch-related changes. X-Git-Tag: v3.0a5~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e757005190abe713daf1f2d40ed6afe8d8ee5b0c;p=python Merge OpenSearch-related changes. --- diff --git a/Doc/conf.py b/Doc/conf.py index 27f5ed3965..8b1514bae9 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -86,6 +86,12 @@ html_additional_pages = { 'index': 'indexcontent.html', } +# Output an OpenSearch description file. +html_use_opensearch = 'http://docs.python.org/dev/3.0' + +# 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