Usage

To enable the extension, add it to the list of extensions in conf.py:

extensions = [
   ...,
   "sphinx_autosummary_accessors",
   ...,
]

and set templates_path appropriately:

templates_path = ["_templates", sphinx_autosummary_accessors.templates_path]

Then, we can simply add a template option to the autosummary directive to get summary and detail pages:

.. autosummary::
   :toctree: generated/
   :template: autosummary/accessor_attribute.rst

   Example.test.double

.. autosummary::
   :toctree: generated/
   :template: autosummary/accessor_method.rst

   Example.test.multiply

For more, see Templates and Examples.