File: automodapi.rst

package info (click to toggle)
sphinx-automodapi 0.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 944 kB
  • sloc: python: 1,696; makefile: 197
file content (32 lines) | stat: -rw-r--r-- 1,020 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Automatically generating module documentation with automodapi
=============================================================

.. _automodapi:

Overview
--------

The main Sphinx directive provided by the sphinx-automodapi package is the
``automodapi`` directive. As described in the :ref:`quickstart` guide,
before you use the directive, you will need to make sure the following
extension is included in the ``extensions`` entry of your documentation's
``conf.py`` file::

    extensions = ['sphinx_automodapi.automodapi']

You can then add an ``automodapi`` block anywhere that you want to generate
documentation for a module::

  .. automodapi:: mypackage.mymodule
     <options go here>

This will add a section with the docstring of the module, followed by a list of
functions, and by a list of classes. For each function and class, a full API
page will be generated.

The automodapi directive and allowed options are described in more detail below.

In detail
---------

.. automodule:: sphinx_automodapi.automodapi