Sphinx API documentation generator
Project description
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.
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 on Getting Started.
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 formatting
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sphinx-autoapi-3.1.0a1.tar.gz
.
File metadata
- Download URL: sphinx-autoapi-3.1.0a1.tar.gz
- Upload date:
- Size: 59.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d21993c40668a42a2a0ff98dc919ee8b9d056ac7d9a7b074eb77b4940409a54 |
|
MD5 | b5053ccbc59141c6122428259f75ba1d |
|
BLAKE2b-256 | 8671e4ac27823f53292fab889e460c97fef71e3e4cbe3427a69c6b6718de5b26 |
Provenance
File details
Details for the file sphinx_autoapi-3.1.0a1-py2.py3-none-any.whl
.
File metadata
- Download URL: sphinx_autoapi-3.1.0a1-py2.py3-none-any.whl
- Upload date:
- Size: 36.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f5f19225894e29cd8bad40afd6eabcaba49a35c0f8f245035cf06964e738254 |
|
MD5 | 639c52034698a2af25f7a05926e513da |
|
BLAKE2b-256 | 741df40399cd0403a4c33fae9fc02fd0532ef763879b714a7affd7923d22f508 |