apidoc: template files are renamed to `.rst_t`

This commit is contained in:
Takeshi KOMIYA 2019-06-16 13:17:51 +09:00
parent 564d23be7a
commit 301d0d6060
5 changed files with 5 additions and 3 deletions

View File

@ -7,6 +7,8 @@ Dependencies
Incompatible changes
--------------------
* apidoc: template files are renamed to ``.rst_t``
Deprecated
----------

View File

@ -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)