mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
@@ -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 %}
|
||||
@@ -1,5 +1,5 @@
|
||||
Testing description units
|
||||
=========================
|
||||
Testing object descriptions
|
||||
===========================
|
||||
|
||||
.. function:: func_without_module(a, b, *c[, d])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user