summaryrefslogtreecommitdiff
path: root/doc/man
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-06-16 13:19:04 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-06-16 13:39:21 +0900
commita0b4d09b1b0fb03437ef213c558dddacaa0270a2 (patch)
tree81af42932ee0af04796091a1ced81fe19390318b /doc/man
parent301d0d60603937b96aa9529f16d9cca420844fbc (diff)
downloadsphinx-git-a0b4d09b1b0fb03437ef213c558dddacaa0270a2.tar.gz
Close #5602: apidoc: Add ``--templatedir`` option
Diffstat (limited to 'doc/man')
-rw-r--r--doc/man/sphinx-apidoc.rst24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/man/sphinx-apidoc.rst b/doc/man/sphinx-apidoc.rst
index aef497e0d..78c0735cb 100644
--- a/doc/man/sphinx-apidoc.rst
+++ b/doc/man/sphinx-apidoc.rst
@@ -126,6 +126,30 @@ These options are used when :option:`--full` is specified:
Sets the project release to put in generated files (see :confval:`release`).
+.. rubric:: Project templating
+
+.. versionadded:: 2.2
+ Project templating options for sphinx-apidoc
+
+.. option:: -t, --templatedir=TEMPLATEDIR
+
+ Template directory for template files. You can modify the templates of
+ sphinx project files generated by apidoc. Following Jinja2 template
+ files are allowed:
+
+ * ``module.rst_t``
+ * ``package.rst_t``
+ * ``toc.rst_t``
+ * ``master_doc.rst_t``
+ * ``conf.py_t``
+ * ``Makefile_t``
+ * ``Makefile.new_t``
+ * ``make.bat_t``
+ * ``make.bat.new_t``
+
+ In detail, please refer the system template files Sphinx provides.
+ (``sphinx/templates/apidoc`` and ``sphinx/templates/quickstart``)
+
Environment
-----------