Usable as a library or script to generate automatic RST source files for items referred to in autosummary:: directives.
Each generated RST file contains a single auto*:: directive which extracts the docstring of the referred item.
Example Makefile rule:
generate: sphinx-autogen -o source/generated source/*.rst
Unknown Field: copyright | |
Copyright 2007-2022 by the Sphinx team, see AUTHORS. | |
Unknown Field: license | |
BSD, see LICENSE for details. |
Variable | logger |
Undocumented |
Class | AutosummaryEntry |
Undocumented |
Class | AutosummaryRenderer |
A helper class for rendering. |
Class | DummyApplication |
Dummy Application class for sphinx-autogen command. |
Class | ModuleScanner |
Undocumented |
Function | _simple_info |
Undocumented |
Function | _simple_warn |
Undocumented |
Function | _underline |
Undocumented |
Function | find_autosummary_in_docstring |
Find out what items are documented in the given object's docstring. |
Function | find_autosummary_in_files |
Find out what items are documented in source/*.rst. |
Function | find_autosummary_in_lines |
Find out what items appear in autosummary:: directives in the given lines. |
Function | generate_autosummary_content |
Undocumented |
Function | generate_autosummary_docs |
Undocumented |
Function | get_parser |
Undocumented |
Function | main |
Undocumented |
Function | members_of |
Get the members of obj, possibly ignoring the __all__ module attribute |
Function | setup_documenters |
Undocumented |
Undocumented
Parameters | |
title:str | Undocumented |
line:str | Undocumented |
Returns | |
str | Undocumented |
Find out what items are documented in the given object's docstring.
See find_autosummary_in_lines
.
Parameters | |
name:str | Undocumented |
module:str | Undocumented |
filename:str | Undocumented |
Returns | |
List[ | Undocumented |
Find out what items are documented in source/*.rst.
See find_autosummary_in_lines
.
Parameters | |
filenames:List[ | Undocumented |
Returns | |
List[ | Undocumented |
Find out what items appear in autosummary:: directives in the given lines.
Returns a list of (name, toctree, template) where name is a name of an object and toctree the :toctree: path of the corresponding autosummary directive (relative to the root of the file name), and template the value of the :template: option. toctree and template None if the directive does not have the corresponding options set.
Parameters | |
lines:List[ | Undocumented |
module:str | Undocumented |
filename:str | Undocumented |
Returns | |
List[ | Undocumented |
Undocumented
Parameters | |
name:str | Undocumented |
obj:Any | Undocumented |
parent:Any | Undocumented |
template:AutosummaryRenderer | Undocumented |
template_name:str | Undocumented |
imported_members:bool | Undocumented |
app:Any | Undocumented |
recursive:bool | Undocumented |
context:Dict | Undocumented |
modname:str | Undocumented |
qualname:str | Undocumented |
Returns | |
str | Undocumented |
Undocumented
Parameters | |
sources:List[ | Undocumented |
output_dir:str | Undocumented |
suffix:str | Undocumented |
base_path:str | Undocumented |
builder:Builder | Undocumented |
template_dir:str | Undocumented |
imported_members:bool | Undocumented |
app:Any | Undocumented |
overwrite:bool | Undocumented |
encoding:str | Undocumented |
Get the members of obj, possibly ignoring the __all__ module attribute
Follows the conf.autosummary_ignore_module_all setting.
Parameters | |
obj:Any | Undocumented |
conf:Config | Undocumented |
Returns | |
Sequence[ | Undocumented |