Sphinx extension to enhance autodoc for interrogated modules
Project description
sphinx-interrogatedb
This is a Sphinx extension that provides autodoc support for modules created by interrogate, by augmenting it with information provided by interrogate databases (.in files).
Usage
To make use of this extension, the following steps are needed:
- Install the module using pip.
pip install sphinx-interrogatedb
- Enable it in
conf.py
.
extensions = ['sphinx.ext.autodoc', 'sphinx_interrogatedb']
- Configure the search path for interrogatedb files.
interrogatedb_search_path = ['dir/containing/in/files/']
- Just use autodoc, autosummary or autopackagesummary as you would normally, and the .in files will automatically be processed.
Configuration
The following configuration options are supported:
interrogatedb_search_path
: list of folders to search for .in files.autodoc_interrogatedb_mangle_type_names
: if True, converts type names in the way that interrogate's python-native back-end does by default.autodoc_interrogatedb_mangle_type_names
: if True, converts type names from snake-case to camel-case. False by default.autodoc_interrogatedb_type_annotations
: if True, shows argument and return types in function signatures using type hint syntax. True by default.autodoc_interrogatedb_add_rtype
: if True, adds an:rtype:
directive to the bodies of docstrings with the return type. True by default.
License
This extension has been licensed under the terms of the Modified BSD License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for sphinx_interrogatedb-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6350345845c5cf9a841984a9ca8005e266a71da9028b41f77ab817744e016840 |
|
MD5 | 859a0f57703a0284e323ea3b08640275 |
|
BLAKE2b-256 | 9b24a22daa849d8fa2fee2a4b6db5974b8869c1dee8ce8474beffbbbf392edd9 |