Closed
Description
Since Sphinx 1.6 methods seem to be missing from class documentation generated with autosummary. I use a file with contents like below as autosummary/class.rst
. Methods are properly documented on Sphinx 1.5.6, but not on 1.6.1 and 1.6.2 (conda
). If I insert {{ methods }}
into the template, the docs display an empty list([]
) with 1.6 and a list of method names in 1.5.
{{ fullname | escape | underline }}
.. currentmodule:: {{ module }}
.. autoclass:: {{ objname }}
{% block methods %}
Methods
-------
.. autosummary::
:toctree:
{% for item in methods %}
{%- if not item.startswith('_') or item in ['__call__'] %}
~{{ name }}.{{ item }}
{%- endif -%}
{%- endfor %}
{% endblock %}