summaryrefslogtreecommitdiff
path: root/tests/root/_templates
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-09-09 15:56:52 +0200
committerGeorg Brandl <georg@python.org>2009-09-09 15:56:52 +0200
commitaa293c6089b8af346697b043db10a16214e575b5 (patch)
treeb975ebf11cd061efa9078609590d4d00b7f350c1 /tests/root/_templates
parenta4b07b548d88eee3af0cf62d8ee48a9239890d4b (diff)
downloadsphinx-aa293c6089b8af346697b043db10a16214e575b5.tar.gz
The ``toctree()`` callable in templates now has a ``maxdepth``
keyword argument to control the depth of the generated tree. Also add tests for that callable.
Diffstat (limited to 'tests/root/_templates')
-rw-r--r--tests/root/_templates/layout.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/root/_templates/layout.html b/tests/root/_templates/layout.html
index e8920025..d312238f 100644
--- a/tests/root/_templates/layout.html
+++ b/tests/root/_templates/layout.html
@@ -1,5 +1,12 @@
{% extends "!layout.html" %}
+
{% block extrahead %}
<meta name="hc" content="{{ hckey }}" />
{{ super() }}
{% endblock %}
+
+{% block sidebartoc %}
+{# display global TOC in addition to local TOC #}
+{{ super() }}
+{{ toctree(collapse=False, maxdepth=-1) }}
+{% endblock %} \ No newline at end of file