Here in Sphinx's documentation it is said what those templates can be redefined.
So I tried to copy module.rst
from /site-packages/sphinx/ext/autosummary
to source/_templates/autosummary
(also tried just source/_templates
) with some slight changes. But after I regenerated the docs nothing changed.
Maybe i should add some specific option to .. autosummary::
tag to specify custom template directory? (in conf.py directory is set right and sphinx see html
templates as well)
UPD: source code: https://github.com/actionless/wooper/blob/master/docs.sh
It should work if you do the following:
templates_path
configuration variable is set to ['_templates']
in conf py._templates
subdirectory. Use the :template:
option:
.. autosummary::
:template: mytemplate.rst
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With