@@ -372,32 +372,32 @@ def write_file(fpath: str, content: str, newline: str | None = None) -> None:
372372 if 'quiet' not in d :
373373 print (__ ('File %s already exists, skipping.' ) % fpath )
374374
375- conf_path = os .path .join (templatedir , 'conf.py_t ' ) if templatedir else None
375+ conf_path = os .path .join (templatedir , 'conf.py.jinja ' ) if templatedir else None
376376 if not conf_path or not path .isfile (conf_path ):
377- conf_path = os .path .join (package_dir , 'templates' , 'quickstart' , 'conf.py_t ' )
377+ conf_path = os .path .join (package_dir , 'templates' , 'quickstart' , 'conf.py.jinja ' )
378378 with open (conf_path , encoding = "utf-8" ) as f :
379379 conf_text = f .read ()
380380
381381 write_file (path .join (srcdir , 'conf.py' ), template .render_string (conf_text , d ))
382382
383383 masterfile = path .join (srcdir , d ['master' ] + d ['suffix' ])
384- if template ._has_custom_template ('quickstart/master_doc.rst_t ' ):
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.' )
384+ if template ._has_custom_template ('quickstart/master_doc.rst.jinja ' ):
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 ))
388- write_file (masterfile , template .render ('quickstart/master_doc.rst_t ' , d ))
388+ write_file (masterfile , template .render ('quickstart/master_doc.rst.jinja ' , d ))
389389 else :
390- write_file (masterfile , template .render ('quickstart/root_doc.rst_t ' , d ))
390+ write_file (masterfile , template .render ('quickstart/root_doc.rst.jinja ' , d ))
391391
392392 if d .get ('make_mode' ):
393- makefile_template = 'quickstart/Makefile.new_t '
394- batchfile_template = 'quickstart/make.bat.new_t '
393+ makefile_template = 'quickstart/Makefile.new.jinja '
394+ batchfile_template = 'quickstart/make.bat.new.jinja '
395395 else :
396396 # xref RemovedInSphinx80Warning
397397 msg = "Support for '--no-use-make-mode' will be removed in Sphinx 8."
398398 print (colorize ('red' , msg ))
399- makefile_template = 'quickstart/Makefile_t '
400- batchfile_template = 'quickstart/make.bat_t '
399+ makefile_template = 'quickstart/Makefile.jinja '
400+ batchfile_template = 'quickstart/make.bat.jinja '
401401
402402 if d ['makefile' ] is True :
403403 d ['rsrcdir' ] = 'source' if d ['sep' ] else '.'
0 commit comments