mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Properly call `super()` in overridden blocks in builtin templates,
even if the blocks are empty in the builtin layout.html they may contain something in an overridden one.
This commit is contained in:
@@ -42,4 +42,5 @@
|
||||
{%- endfor %}</p>
|
||||
|
||||
<p><a href="{{ pathto('genindex-all') }}"><strong>{{ _('Full index on one page') }}</strong></a></p>
|
||||
{{ super() }}
|
||||
{% endblock %}
|
||||
|
||||
@@ -26,4 +26,5 @@
|
||||
|
||||
<p><a href="{{ pathto('genindex-all') }}"><strong>{{ _('Full index on one page') }}</strong></a></p>
|
||||
{% endif %}
|
||||
{{ super() }}
|
||||
{% endblock %}
|
||||
|
||||
@@ -53,4 +53,5 @@
|
||||
|
||||
<p><a href="{{ pathto('genindex-all') }}"><strong>{{ _('Full index on one page') }}</strong></a></p>
|
||||
{% endif %}
|
||||
{{ super() }}
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{% extends "layout.html" %}
|
||||
{% set title = _('Global Module Index') %}
|
||||
{% block extrahead %}
|
||||
{{ super() }}
|
||||
{% if builder != 'htmlhelp' and collapse_modindex %}
|
||||
<script type="text/javascript">
|
||||
DOCUMENTATION_OPTIONS.COLLAPSE_MODINDEX = true;
|
||||
|
||||
Reference in New Issue
Block a user