summaryrefslogtreecommitdiff
path: root/sphinx/templates
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-05-02 22:40:36 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-05-04 17:19:31 +0900
commite41d6f3651416ca6ce31d637b572895264661f00 (patch)
treea75f09ff6d4613cf7e039b356bddf4d9b19bbe9f /sphinx/templates
parentb482e38ca2e81b241b3c16f72d5df9296a267389 (diff)
downloadsphinx-git-e41d6f3651416ca6ce31d637b572895264661f00.tar.gz
apidoc: Use a template for generating toc file
Diffstat (limited to 'sphinx/templates')
-rw-r--r--sphinx/templates/apidoc/toc.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/sphinx/templates/apidoc/toc.rst b/sphinx/templates/apidoc/toc.rst
new file mode 100644
index 000000000..291a19402
--- /dev/null
+++ b/sphinx/templates/apidoc/toc.rst
@@ -0,0 +1,9 @@
+{{ header | heading }}
+
+.. toctree::
+ :maxdepth: {{ maxdepth }}
+
+{% for docname in docnames %}
+ {{ docname }}
+{%- endfor %}
+