summaryrefslogtreecommitdiff
path: root/sphinx/ext/apidoc.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-06-16 13:17:51 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-06-16 13:17:51 +0900
commit301d0d60603937b96aa9529f16d9cca420844fbc (patch)
tree6a83fdb91ab303fa2a26ad966aa49fa0cab8b0e2 /sphinx/ext/apidoc.py
parent564d23be7ac001aaa172aaf05cdc6e46e2fb9ba7 (diff)
downloadsphinx-git-301d0d60603937b96aa9529f16d9cca420844fbc.tar.gz
apidoc: template files are renamed to ``.rst_t``
Diffstat (limited to 'sphinx/ext/apidoc.py')
-rw-r--r--sphinx/ext/apidoc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/ext/apidoc.py b/sphinx/ext/apidoc.py
index d38b749f0..18b5481f9 100644
--- a/sphinx/ext/apidoc.py
+++ b/sphinx/ext/apidoc.py
@@ -121,7 +121,7 @@ def create_module_file(package, basename, opts):
'qualname': qualname,
'automodule_options': OPTIONS,
}
- text = ReSTRenderer(template_dir).render('module.rst', context)
+ text = ReSTRenderer(template_dir).render('module.rst_t', context)
write_file(qualname, text, opts)
@@ -151,7 +151,7 @@ def create_package_file(root, master_package, subroot, py_files, opts, subs, is_
'automodule_options': OPTIONS,
'show_headings': not opts.noheadings,
}
- text = ReSTRenderer(template_dir).render('package.rst', context)
+ text = ReSTRenderer(template_dir).render('package.rst_t', context)
write_file(pkgname, text, opts)
if submodules and opts.separatemodules:
@@ -176,7 +176,7 @@ def create_modules_toc_file(modules, opts, name='modules'):
'maxdepth': opts.maxdepth,
'docnames': modules,
}
- text = ReSTRenderer(template_dir).render('toc.rst', context)
+ text = ReSTRenderer(template_dir).render('toc.rst_t', context)
write_file(name, text, opts)