module documentation
Generate the API docs using pydoctor to be integrated into Sphinx build system.
This was designed to generate pydoctor HTML files as part of the Read The Docs build process.
Inside the Sphinx conf.py file you need to define the following configuration options:
- pydoctor_url_path - defined the URL path to the API documentation You can use {rtd_version} to have the URL automatically updated based on Read The Docs build.
- (private usage) a mapping with values URL path definition. Make sure each definition will produce a unique URL.
- pydoctor_args - Sequence with all the pydoctor command line arguments used to trigger the build.
- (private usage) a mapping with values as sequence of pydoctor command line arguments.
The following format placeholders are resolved for pydoctor_args at runtime:
- {outdir} - the Sphinx output dir
You must call pydoctor with --quiet argument as otherwise any extra output is converted into Sphinx warnings.
Function | on |
Called when Sphinx build is done. |
Function | on |
Called to build the API documentation HTML files and inject our own intersphinx inventory object. |
Function | setup |
Called by Sphinx when the extension is initialized. |
Variable | logger |
Undocumented |
Function | _get |
Return the resolved arguments for pydoctor build. |
Function | _run |
Call pydoctor with arguments. |