-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.rst_t apidoc template files are not found #12916
Comments
cc @jayaddison |
This seems to be a problem, yep. Thank you for the bugreport @Sbte. Although #11165 is where these changes were first prepared, I believe the first release to include them was v7.4.0 after they were (re)introduced by #12364. This also seems to be a regression since it breaks existing functionality, so I'll add the appropriate bugtracker label. I should be able to start on a fix within the next day or two. |
I encountered exactly the same problem and tested different versions of Sphinx on my project (which is using *.rst_t files as templates):
I was always using Python 3.12.5 on Ubuntu 22.04 with WSL. I hope that my contribution is helpful. |
Describe the bug
Most likely since #11165 (at least since 7.4.0, not before that) my apidoc template files are not found anymore. They are called
module.rst_t
andpackage.rst_t
. Renaming them tomodule.rst.jinja
andpackage.rst.jinja
fixes the issue, but this breaks compatibility with earlier sphinx versions. Moreover,.rst_t
files will only be marked as deprecated starting 31 December 2024.How to Reproduce
conf.py
:templates/module.rst_t
:index.rst
mod/mod.py
:Using this configuration, you don't see the line "The template was found!" on the index page or anywhere else. Renaming
templates/module.rst_t
totemplates/module.rst.jinja
fixes the issue, but breaks compatibility with other sphinx versions.Environment Information
Sphinx extensions
`['sphinxcontrib.apidoc']`
Additional context
No response
The text was updated successfully, but these errors were encountered: