I'd like to customize the generated .rst files with sphinx.ext.apidoc. As a test, I edited the installed package files at site-packages/sphinx/templates/apidoc/*.rst.jinja, and that worked, but of course that's not the correct way to do this.
I tried copying those files into my configured _templates directory, renaming the file to *_t, without success.
I know I can do this with sphinx-apidoc --templatedir _templates, but that's outside the sphinx-build process per https://stackoverflow.com/a/57520238/2214933. I also know I could also create a script or add a Make target that runs sphinx-apidoc then sphinx-build, but that's not exactly what I'd like.