Hello, everyone. I have two issues:

First, autosummary does not seem to be finding my templates. I have 
followed this SO answer to the letter. Second, I want to use a file like 
module.rst for classes, methods, properties, attributes, etc. to 
recursively call autosummary until every class/model/function/attribute is 
documented. My directory structure looks like the following:

    module1
        Module code here
    docs
        conf.py
        index.rst
        modules.rst
        _templates
            autosummary
                module.rst

docs/index.rst looks like this:


.. sparse documentation master file, created by
   sphinx-quickstart on Fri Dec 29 20:58:03 2017.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

Welcome to sparse's documentation!
==================================

.. toctree::
   :maxdepth: 2
   :caption: Contents:

   modules

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

docs/modules.rst:

API Reference
=============

Modules
-------

.. autosummary::
   :toctree: _autosummary

   module1

docs/_templates/autosummary/module.rst

{{ fullname | escape | underline }}

Description
-----------

.. automodule:: {{ fullname | escape }}

{% if classes %}
Classes
-------
.. autosummary:
    :toctree: _autosummary

    {% for class in classes %}
        {{ class }}
    {% endfor %}

{% endif %}

{% if functions %}
Functions
---------
.. autosummary:
    :toctree: _autosummary

    {% for function in functions %}
        {{ function }}
    {% endfor %}

{% endif %}

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to