-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from tomalrussell/feature/parameters
Reduce smif.parameters API, introducing a Parameter object. Use `better-apidoc` to template module reference documentation and avoid duplicated documentation of `__all__` imports in subpackages.
- Loading branch information
Showing
20 changed files
with
635 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Templates | ||
|
||
These templates are used by better-apidoc to produce customised apidoc output | ||
in the ../api directory for sphinx to use to build documentation from Python | ||
docstrings. | ||
|
||
For reference, see https://github.com/goerz/better-apidoc#templating |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{{ fullname }} module | ||
{% for item in range(fullname|length) -%}={%- endfor %} | ||
|
||
.. currentmodule:: {{ fullname }} | ||
|
||
.. automodule:: {{ fullname }} | ||
{% if members -%} | ||
:members: {{ members|join(", ") }} | ||
:undoc-members: | ||
:show-inheritance: | ||
:member-order: bysource | ||
{%- endif %} | ||
|
||
|
||
Summary | ||
------- | ||
|
||
{%- if exceptions %} | ||
|
||
Exceptions: | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
{% for item in exceptions %} | ||
{{ item }} | ||
{%- endfor %} | ||
{%- endif %} | ||
|
||
{%- if classes %} | ||
|
||
Classes: | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
{% for item in classes %} | ||
{{ item }} | ||
{%- endfor %} | ||
{%- endif %} | ||
|
||
{%- if functions %} | ||
|
||
Functions: | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
{% for item in functions %} | ||
{{ item }} | ||
{%- endfor %} | ||
{%- endif %} | ||
|
||
{%- if data %} | ||
|
||
Data: | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
{% for item in data %} | ||
{{ item }} | ||
{%- endfor %} | ||
{%- endif %} | ||
|
||
{% if all_refs %} | ||
``__all__``: {{ all_refs|join(", ") }} | ||
{%- endif %} | ||
|
||
|
||
{% if members %} | ||
Reference | ||
--------- | ||
|
||
{%- endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{{ fullname }} package | ||
{% for item in range(fullname|length) -%}={%- endfor %} | ||
|
||
.. automodule:: {{ fullname }} | ||
{% if members -%} | ||
:members: {{ members|join(", ") }} | ||
:undoc-members: | ||
:show-inheritance: | ||
{%- endif %} | ||
|
||
|
||
{% if submodules %} | ||
Submodules: | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
{% for item in submodules %} | ||
{{ fullname }}.{{ item }} | ||
{%- endfor %} | ||
{%- endif -%} | ||
|
||
{% if subpackages %} | ||
Subpackages: | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
{% for item in subpackages %} | ||
{{ fullname }}.{{ item }} | ||
{%- endfor %} | ||
{%- endif %} | ||
|
||
{% if members %} | ||
{%- if exceptions %} | ||
|
||
Exceptions: | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
{% for item in exceptions %} | ||
{{ item }} | ||
{%- endfor %} | ||
{%- endif %} | ||
|
||
{%- if classes %} | ||
|
||
Classes: | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
{% for item in classes %} | ||
{{ item }} | ||
{%- endfor %} | ||
{%- endif %} | ||
|
||
{%- if functions %} | ||
|
||
Functions: | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
{% for item in functions %} | ||
{{ item }} | ||
{%- endfor %} | ||
{%- endif %} | ||
{%- endif %} | ||
|
||
{%- if data %} | ||
|
||
Data: | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
{% for item in data %} | ||
{{ item }} | ||
{%- endfor %} | ||
{%- endif %} | ||
|
||
{% if all_refs %} | ||
Exports | ||
------- | ||
|
||
``__all__``: {{ all_refs|join(", ") }} | ||
{%- endif %} | ||
|
||
|
||
{% if members %} | ||
Reference | ||
--------- | ||
|
||
{%- endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.