diff -r 26dd6e7f1733 Doc/conf.py --- a/Doc/conf.py Wed Aug 03 12:59:16 2016 +0300 +++ b/Doc/conf.py Wed Aug 03 13:18:38 2016 -0700 @@ -60,7 +60,10 @@ # Custom sidebar templates, filenames relative to this file. html_sidebars = { - 'index': 'indexsidebar.html', + # Defaults taken from http://www.sphinx-doc.org/en/stable/config.html#confval-html_sidebars + # Removes the quick search block + '**': ['localtoc.html', 'relations.html', 'customsourcelink.html'], + 'index': ['indexsidebar.html'], } # Additional templates that should be rendered to pages. diff -r 26dd6e7f1733 Doc/tools/pydoctheme/static/pydoctheme.css --- a/Doc/tools/pydoctheme/static/pydoctheme.css Wed Aug 03 12:59:16 2016 +0300 +++ b/Doc/tools/pydoctheme/static/pydoctheme.css Wed Aug 03 13:18:38 2016 -0700 @@ -22,6 +22,16 @@ border-bottom: 1px solid #ccc; } +.inline-search { + display: inline; +} +form.inline-search input { + display: inline; +} +form.inline-search input[type="submit"] { + width: 30px; +} + div.sphinxsidebar { background-color: #eeeeee; border-radius: 5px; @@ -45,6 +55,7 @@ color: #0095C4; } +form.inline-search input, div.sphinxsidebar input { font-family: 'Lucida Grande',Arial,sans-serif; border: 1px solid #999999; diff -r 26dd6e7f1733 Doc/tools/templates/customsourcelink.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Doc/tools/templates/customsourcelink.html Wed Aug 03 13:18:38 2016 -0700 @@ -0,0 +1,10 @@ +{%- if show_source and has_source and sourcename %} +
+

{{ _('This Page') }}

+ +
+{%- endif %} diff -r 26dd6e7f1733 Doc/tools/templates/layout.html --- a/Doc/tools/templates/layout.html Wed Aug 03 12:59:16 2016 +0300 +++ b/Doc/tools/templates/layout.html Wed Aug 03 13:18:38 2016 -0700 @@ -12,8 +12,29 @@ {%- endif %} {% endblock %} +{%- macro searchbox() %} +{# modified from sphinx/themes/basic/searchbox.html #} + {%- if pagename != "search" and builder != "singlehtml" %} + + + {%- endif %} +{%- endmacro %} {% block relbar1 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %} {% block relbar2 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %} +{% block relbaritems %} +
  • + {{ searchbox() }} + {{ reldelim2 }} +
  • +{% endblock %} {% block extrahead %} {% if not embedded %}{% endif %} @@ -90,13 +111,3 @@ {% trans sphinx_version=sphinx_version|e %}Created using Sphinx {{ sphinx_version }}.{% endtrans %} {% endblock %} -{% block sidebarsourcelink %} -{%- if show_source and has_source and sourcename %} -

    {{ _('This Page') }}

    - -{%- endif %} -{% endblock %}