Skip to content

Commit 06bc6b3

Browse files
committed
[FIX] Fixing issue python#29520 by copying defindex.html template which
will depricate in next stable version of Sphinx library.
1 parent ace5c0f commit 06bc6b3

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Doc/tools/templates/defindex.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{#
2+
basic/defindex.html
3+
~~~~~~~~~~~~~~~~~~~
4+
5+
Default template for the "index" page.
6+
7+
:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
8+
:license: BSD, see LICENSE for details.
9+
#}
10+
{%- extends "layout.html" %}
11+
{% set title = _('Overview') %}
12+
{% block body %}
13+
<h1>{{ docstitle|e }}</h1>
14+
<p>
15+
{{ _('Welcome! This is') }}
16+
{% block description %}{{ _('the documentation for') }} {{ project|e }}
17+
{{ release|e }}{% if last_updated %}, {{ _('last updated') }} {{ last_updated|e }}{% endif %}{% endblock %}.
18+
</p>
19+
{% block tables %}
20+
<p><strong>{{ _('Indices and tables:') }}</strong></p>
21+
<table class="contentstable" align="center"><tr>
22+
<td width="50%">
23+
<p class="biglink"><a class="biglink" href="{{ pathto("contents") }}">{{ _('Complete Table of Contents') }}</a><br>
24+
<span class="linkdescr">{{ _('lists all sections and subsections') }}</span></p>
25+
<p class="biglink"><a class="biglink" href="{{ pathto("search") }}">{{ _('Search Page') }}</a><br>
26+
<span class="linkdescr">{{ _('search this documentation') }}</span></p>
27+
</td><td width="50%">
28+
<p class="biglink"><a class="biglink" href="{{ pathto("modindex") }}">{{ _('Global Module Index') }}</a><br>
29+
<span class="linkdescr">{{ _('quick access to all modules') }}</span></p>
30+
<p class="biglink"><a class="biglink" href="{{ pathto("genindex") }}">{{ _('General Index') }}</a><br>
31+
<span class="linkdescr">{{ _('all functions, classes, terms') }}</span></p>
32+
</td></tr>
33+
</table>
34+
{% endblock %}
35+
{% endblock %}

0 commit comments

Comments
 (0)