diff --git a/doc/_templates/config.rst b/doc/_templates/config.rst index 0c315cc0f4b82057692ba2c80ddaa7c0037fe861..a287392f705f1c10adec86c2e2e5a1b0b1c9cb24 100644 --- a/doc/_templates/config.rst +++ b/doc/_templates/config.rst @@ -1,38 +1,2 @@ -{{ fullname | escape | underline}} - -.. automodule:: {{ fullname }} - - {% block functions %} - {% if functions %} - .. rubric:: Functions - - .. autosummary:: - {% for item in functions %} - {{ item }} - {%- endfor %} - {% endif %} - {% endblock %} - - {% block classes %} - {% if classes %} - .. rubric:: Classes - - .. autosummary:: - {% for item in classes %} - {{ item }} - {%- endfor %} - {% endif %} - {% endblock %} - - {% block exceptions %} - {% if exceptions %} - .. rubric:: Exceptions - - .. autosummary:: - {% for item in exceptions %} - {{ item }} - {%- endfor %} - {% endif %} - {% endblock %} - +{% include "autosummary/module.rst" %} .. literalinclude:: ../../../../{{ fullname.replace(".", "/") }}.py diff --git a/doc/api.rst b/doc/api.rst index d178eb98d36dc76a30bc314b866828de6068730d..a79deca573b58c305d234ecfba02ab27670a46f4 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -96,11 +96,6 @@ Scripts Preset Configurations --------------------- -.. autosummary:: - :toctree: api/configs - - bob.ip.binseg.configs - Models ====== @@ -126,6 +121,7 @@ Datasets .. autosummary:: :toctree: api/configs/datasets + :template: config.rst bob.ip.binseg.configs.datasets.amdrive bob.ip.binseg.configs.datasets.amdrivetest