From 4f1f36bcabe098394934ac7cac84c1f26fff2c86 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 27 Apr 2008 20:03:05 +0000 Subject: Add OpenSearch and a Python logo to the HTML output. --- Doc/conf.py | 6 ++++++ Doc/tools/sphinxext/layout.html | 5 +++++ Doc/tools/sphinxext/opensearch.xml | 14 ++++++++++++++ Doc/tools/sphinxext/static/py.png | Bin 0 -> 695 bytes 4 files changed, 25 insertions(+) create mode 100644 Doc/tools/sphinxext/layout.html create mode 100644 Doc/tools/sphinxext/opensearch.xml create mode 100644 Doc/tools/sphinxext/static/py.png diff --git a/Doc/conf.py b/Doc/conf.py index 45d40fb..e4641ea 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 0000000..689cbda --- /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 0000000..d672c2e --- /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 0000000..93e4a02 Binary files /dev/null and b/Doc/tools/sphinxext/static/py.png differ -- cgit v0.12