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.
This commit is contained in:
Georg Brandl
2009-09-09 15:56:52 +02:00
parent eff5270219
commit 0792ad7498
7 changed files with 28 additions and 7 deletions

View File

@@ -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 %}

View File

@@ -1,5 +1,5 @@
Testing description units
=========================
Testing object descriptions
===========================
.. function:: func_without_module(a, b, *c[, d])