Generates reST source files for autosummary. 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
Class |
|
Undocumented |
Class |
|
A helper class for rendering. |
Class |
|
Dummy Application class for sphinx-autogen command. |
Class |
|
Undocumented |
Function | find |
Find out what items are documented in the given object's docstring. |
Function | find |
Find out what items are documented in source/*.rst. |
Function | find |
Find out what items appear in autosummary:: directives in the given lines. |
Function | generate |
Undocumented |
Function | generate |
Undocumented |
Function | get |
Undocumented |
Function | main |
Undocumented |
Function | members |
Get the members of ``obj``, possibly ignoring the ``__all__`` module attribute |
Function | setup |
Undocumented |
Variable | logger |
Undocumented |
Function | _underline |
Undocumented |
Find out what items are documented in the given object's docstring. See `find_autosummary_in_lines`.
Parameters | |
name:str | Undocumented |
filename:str|None | 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|None | Undocumented |
filename:str|None | Undocumented |
Returns | |
list[ | Undocumented |
Undocumented
Parameters | |
name:str | Undocumented |
obj:Any | Undocumented |
parent:Any | Undocumented |
template:AutosummaryRenderer | Undocumented |
templatestr | Undocumented |
importedbool | Undocumented |
app:Any | Undocumented |
recursive:bool | Undocumented |
context:dict | Undocumented |
modname:str|None | Undocumented |
qualname:str|None | Undocumented |
Returns | |
str | Undocumented |