From c9fad8720395d02a7a9fd2998f06880d9bdeda60 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sat, 18 Nov 2017 08:53:06 -0700 Subject: [PATCH] DOC: Add copy of deprecated defindex.html template. NumPy currently uses defindex.html, which has been deprecated upstream in Sphinx. Here we add a copy to NumPy and remove the deprecation warning that resulted in an unwanted "None" appearing at the top of some documentation pages. [ci skip] Closes #9676. --- doc/source/_templates/defindex.html | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 doc/source/_templates/defindex.html diff --git a/doc/source/_templates/defindex.html b/doc/source/_templates/defindex.html new file mode 100644 index 000000000000..8eaadecb9283 --- /dev/null +++ b/doc/source/_templates/defindex.html @@ -0,0 +1,35 @@ +{# + basic/defindex.html + ~~~~~~~~~~~~~~~~~~~ + + Default template for the "index" page. + + :copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS. + :license: BSD, see LICENSE for details. +#} +{%- extends "layout.html" %} +{% set title = _('Overview') %} +{% block body %} +

{{ docstitle|e }}

+

+ {{ _('Welcome! This is') }} + {% block description %}{{ _('the documentation for') }} {{ project|e }} + {{ release|e }}{% if last_updated %}, {{ _('last updated') }} {{ last_updated|e }}{% endif %}{% endblock %}. +

+ {% block tables %} +

{{ _('Indices and tables:') }}

+ + +
+ + + + + +
+ {% endblock %} +{% endblock %}