- make files now re-build autosummary and deps file. - Added typer and platformdirs to deps in pyproject.toml. - Made root_is_pure = True in setup.py as platform/python specific wheels don't need to be built but the option is there should we need to. - Added an e2e test for primaite.main.run func.
70 lines
1.3 KiB
ReStructuredText
70 lines
1.3 KiB
ReStructuredText
..
|
|
Credit to https://github.com/JamesALeedham/Sphinx-Autosummary-Recursion for the custom templates.
|
|
..
|
|
{{ fullname | escape | underline}}
|
|
|
|
.. automodule:: {{ fullname }}
|
|
|
|
{% block attributes %}
|
|
{% if attributes %}
|
|
.. rubric:: Module attributes
|
|
|
|
.. autosummary::
|
|
:toctree:
|
|
{% for item in attributes %}
|
|
{{ item }}
|
|
{%- endfor %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block functions %}
|
|
{% if functions %}
|
|
.. rubric:: {{ _('Functions') }}
|
|
|
|
.. autosummary::
|
|
:toctree:
|
|
:nosignatures:
|
|
{% for item in functions %}
|
|
{{ item }}
|
|
{%- endfor %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block classes %}
|
|
{% if classes %}
|
|
.. rubric:: {{ _('Classes') }}
|
|
|
|
.. autosummary::
|
|
:toctree:
|
|
:template: custom-class-template.rst
|
|
:nosignatures:
|
|
{% for item in classes %}
|
|
{{ item }}
|
|
{%- endfor %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block exceptions %}
|
|
{% if exceptions %}
|
|
.. rubric:: {{ _('Exceptions') }}
|
|
|
|
.. autosummary::
|
|
:toctree:
|
|
{% for item in exceptions %}
|
|
{{ item }}
|
|
{%- endfor %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block modules %}
|
|
{% if modules %}
|
|
.. autosummary::
|
|
:toctree:
|
|
:template: custom-module-template.rst
|
|
:recursive:
|
|
{% for item in modules %}
|
|
{{ item }}
|
|
{%- endfor %}
|
|
{% endif %}
|
|
{% endblock %}
|