Sphinx API documentation generator
Project description
Sphinx AutoAPI provides “autodoc” style documentation for multiple programming languages without needing to load, run, or import the project being documented.
In contrast to the traditional Sphinx autodoc, which is Python-only and uses code imports, AutoAPI finds and generates documentation by parsing source code.
Language Support
Language |
Status |
Parser |
---|---|---|
Python |
Stable |
Custom using astroid |
Go |
Alpha |
|
Javascript |
Alpha |
|
.NET |
Alpha |
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. Other languages may require further configuration:
extensions.append('autoapi.extension')
autoapi_type = 'python'
autoapi_dirs = ['path/to/source/files', 'src']
Where autoapi_type can be one of any of the supported languages:
Language |
autoapi_type |
---|---|
Python |
'python' |
Go |
'go' |
Javascript |
'javascript' |
.NET |
'dotnet' |
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
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-1.8.2.tar.gz
.
File metadata
- Download URL: sphinx-autoapi-1.8.2.tar.gz
- Upload date:
- Size: 42.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38a78aa2d578fc0a46143f176e5720b4572aac869a98571c3db3163dd73526bb |
|
MD5 | 34f97e8a7b09a6149b7e04132b238a13 |
|
BLAKE2b-256 | b75c80321c378bcb7afa8305a88048a68d2fa32946d72098f38eaa8910059552 |
Provenance
File details
Details for the file sphinx_autoapi-1.8.2-py2.py3-none-any.whl
.
File metadata
- Download URL: sphinx_autoapi-1.8.2-py2.py3-none-any.whl
- Upload date:
- Size: 55.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47a1f28031c8e93957436fbbb964c622d0ebbe97428ba3c8a5f3c88045881009 |
|
MD5 | 09cf6676e7ba259153f10dedb403c74b |
|
BLAKE2b-256 | 8ba0cb6cac97b55c6e4f14e7d34662f9014cbeb6c6a7f3bc845a9b400c909592 |