mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
* Propagated "maxdepth" recursively through package documents.
This commit is contained in:
parent
5caaa5534b
commit
06b54c0a1f
@ -175,6 +175,7 @@ def create_package_file(root: str, master_package: str, subroot: str, py_files:
|
||||
'separatemodules': opts.separatemodules,
|
||||
'automodule_options': options,
|
||||
'show_headings': not opts.noheadings,
|
||||
'maxdepth': opts.maxdepth,
|
||||
}
|
||||
text = ReSTRenderer([user_template_dir, template_dir]).render('package.rst_t', context)
|
||||
write_file(pkgname, text, opts)
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
{%- macro toctree(docnames) -%}
|
||||
.. toctree::
|
||||
:maxdepth: {{ maxdepth }}
|
||||
{% for docname in docnames %}
|
||||
{{ docname }}
|
||||
{%- endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user