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:
The following format placeholders are resolved for pydoctor_args at runtime:
You must call pydoctor with --quiet argument as otherwise any extra output is converted into Sphinx warnings.
Function | on_build_finished |
Called when Sphinx build is done. |
Function | on_builder_inited |
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_arguments |
Return the resolved arguments for pydoctor build. |
Function | _run_pydoctor |
Call pydoctor with arguments. |
Parameters | |
app:Sphinx | Undocumented |
exception:Exception | Undocumented |
Parameters | |
app:Sphinx | Undocumented |
Parameters | |
app:Sphinx | Undocumented |
Returns | |
Mapping[ | The extension version and runtime options. |