Skip to main content

Sphinx API documentation generator

Project description

Documentation Github Build Status PyPI Version Supported Python Versions Formatted with Black

Sphinx AutoAPI is a Sphinx extension for generating complete API documentation without needing to load, run, or import the project being documented.

In contrast to the traditional Sphinx autodoc, which requires manual authoring and uses code imports, AutoAPI finds and generates documentation by parsing source code.

For more information, see the full documentation.

Getting Started

The following steps will walk through how to add AutoAPI to an existing Sphinx project. For instructions on how to set up a Sphinx project, see Sphinx’s documentation.

Installation

AutoAPI can be installed through pip:

pip install sphinx-autoapi

Next, add and configure AutoAPI in your Sphinx project’s conf.py.

extensions.append('autoapi.extension')

autoapi_dirs = ['path/to/source/files', 'src']

When the documentation is built, AutoAPI will now generate API documentation into an autoapi/ directory and add an entry to the documentation in your top level table of contents!

To configure AutoAPI behaviour further, see the Configuration documentation.

Contributing

Running the tests

Tests are executed through tox.

tox

Code Style

Code is formatted using black.

You can check your formatting using black’s check mode:

tox -e format

You can also get black to format your changes for you:

black autoapi/ tests/

You can even get black to format changes automatically when you commit using pre-commit:

pip install pre-commit
pre-commit install

Release Notes

Release notes are managed through towncrier. When making a pull request you will need to create a news fragment to document your change:

tox -e release_notes -- create --help

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the MIT License. See the LICENSE.rst file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx_autoapi-3.3.3.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

sphinx_autoapi-3.3.3-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_autoapi-3.3.3.tar.gz.

File metadata

  • Download URL: sphinx_autoapi-3.3.3.tar.gz
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for sphinx_autoapi-3.3.3.tar.gz
Algorithm Hash digest
SHA256 c44fd719580e9a3684ff82019f4f7f39fc970e3030ffd325936654a6f4d31f22
MD5 d9d970a4dbcc85d1641a50c25302892a
BLAKE2b-256 55ce6b2b1da7735c35727e4afbf426ae9ce3cae6f0642b6fd7a33c1d16f1a154

See more details on using hashes here.

File details

Details for the file sphinx_autoapi-3.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_autoapi-3.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5c7349b42d45a492a611cb81fb48583d5148e9eab7fc6b1f326dc9273b9191e3
MD5 03c18e688f6f59b6f5c8e84d94cf2d90
BLAKE2b-256 8d7e3d1efa223df1bdb2b990e4ba510b750495bc0c316184af13b57efc727ed2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page