Skip to content
Snippets Groups Projects
Commit 0680a28f authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[doc] Better templating for autosummary; Configuration is now setup

parent dedfceab
No related branches found
No related tags found
1 merge request!12Streamlining
Pipeline #38210 passed
{{ fullname | escape | underline}} {% include "autosummary/module.rst" %}
.. 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 %}
.. literalinclude:: ../../../../{{ fullname.replace(".", "/") }}.py .. literalinclude:: ../../../../{{ fullname.replace(".", "/") }}.py
...@@ -96,11 +96,6 @@ Scripts ...@@ -96,11 +96,6 @@ Scripts
Preset Configurations Preset Configurations
--------------------- ---------------------
.. autosummary::
:toctree: api/configs
bob.ip.binseg.configs
Models Models
====== ======
...@@ -126,6 +121,7 @@ Datasets ...@@ -126,6 +121,7 @@ Datasets
.. autosummary:: .. autosummary::
:toctree: api/configs/datasets :toctree: api/configs/datasets
:template: config.rst
bob.ip.binseg.configs.datasets.amdrive bob.ip.binseg.configs.datasets.amdrive
bob.ip.binseg.configs.datasets.amdrivetest bob.ip.binseg.configs.datasets.amdrivetest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment