mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-06 09:20:27 +00:00
095b1e5b29
Also lots of little cleanup to remove errors on those builds.
31 lines
672 B
ReStructuredText
31 lines
672 B
ReStructuredText
.. dn:{{ obj.ref_type }}:: {{ obj.name }}
|
|
|
|
{% if obj.summary %}
|
|
|
|
{{ obj.summary|indent(4) }}
|
|
|
|
{% endif %}
|
|
|
|
{%- for param in obj.parameters %}
|
|
|
|
{% if param.desc %}
|
|
:param {{ param.name }}: {{ param.desc|indent(8) }}
|
|
{% endif %}
|
|
{%- if param.type %}
|
|
:type {{ param.name }}: {{ param.type|indent(8) }}
|
|
{%- endif %}
|
|
{%- endfor %}
|
|
|
|
{%- if obj.returns.type %}
|
|
:rtype: {{ obj.returns.type|indent(8) }}
|
|
{%- endif %}
|
|
{%- if obj.returns.description %}
|
|
:return: {{ obj.returns.description|indent(8) }}
|
|
{%- endif %}
|
|
|
|
{% if obj.example %}
|
|
.. code-block:: csharp
|
|
|
|
{{ obj.example }}
|
|
{%- endif %}
|