Skip to content

Commit 7ce2e34

Browse files
committed
Reapply "fixup: update a few lingering docstring and message variable references to '_t'-suffix templates"
This reverts commit f0f22fd.
1 parent 0126b7a commit 7ce2e34

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

doc/man/sphinx-apidoc.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,15 @@ These options are used when :option:`--full` is specified:
142142
sphinx project files generated by apidoc. Following Jinja2 template
143143
files are allowed:
144144

145-
* ``module.rst_t``
146-
* ``package.rst_t``
147-
* ``toc.rst_t``
148-
* ``root_doc.rst_t``
149-
* ``conf.py_t``
150-
* ``Makefile_t``
151-
* ``Makefile.new_t``
152-
* ``make.bat_t``
153-
* ``make.bat.new_t``
145+
* ``module.rst.jinja``
146+
* ``package.rst.jinja``
147+
* ``toc.rst.jinja``
148+
* ``root_doc.rst.jinja``
149+
* ``conf.py.jinja``
150+
* ``Makefile.jinja``
151+
* ``Makefile.new.jinja``
152+
* ``make.bat.jinja``
153+
* ``make.bat.new.jinja``
154154

155155
In detail, please refer the system template files Sphinx provides.
156156
(``sphinx/templates/apidoc`` and ``sphinx/templates/quickstart``)

doc/man/sphinx-quickstart.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ Options
152152
sphinx project files generated by quickstart. Following Jinja2 template
153153
files are allowed:
154154

155-
* ``root_doc.rst_t``
156-
* ``conf.py_t``
157-
* ``Makefile_t``
158-
* ``Makefile.new_t``
159-
* ``make.bat_t``
160-
* ``make.bat.new_t``
155+
* ``root_doc.rst.jinja``
156+
* ``conf.py.jinja``
157+
* ``Makefile.jinja``
158+
* ``Makefile.new.jinja``
159+
* ``make.bat.jinja``
160+
* ``make.bat.new.jinja``
161161

162162
In detail, please refer the system template files Sphinx provides.
163163
(``sphinx/templates/quickstart``)

sphinx/cmd/quickstart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ def write_file(fpath: str, content: str, newline: str | None = None) -> None:
382382

383383
masterfile = path.join(srcdir, d['master'] + d['suffix'])
384384
if template._has_custom_template('quickstart/master_doc.rst.jinja'):
385-
msg = ('A custom template `master_doc.rst_t` found. It has been renamed to '
386-
'`root_doc.rst_t`. Please rename it on your project too.')
385+
msg = ('A custom template `master_doc.rst.jinja` found. It has been renamed to '
386+
'`root_doc.rst.jinja`. Please rename it on your project too.')
387387
print(colorize('red', msg))
388388
write_file(masterfile, template.render('quickstart/master_doc.rst.jinja', d))
389389
else:

0 commit comments

Comments
 (0)