Builder
Builder(self,
package,=tuple(),
sections=None,
options=None,
versiondir='reference',
='Function reference',
title='markdown',
renderer=None,
out_index=None,
sidebar=None,
css=False,
rewrite_all_pages=None,
source_dir=None,
dynamic='numpy',
parser=False,
render_interlinks=False,
_fast_inventory )
Base class for building API docs.
Parameters
package : str
-
The name of the package.
sections : 'list[Any]' = tuple()
-
A list of sections, with items to document.
version : 'str | None' = None
-
The package version. By default this attempts to look up the current package version (TODO).
dir : str = 'reference'
-
Name of API directory.
title : str = 'Function reference'
-
Title of the API index page.
renderer : 'dict | Renderer | str' = 'markdown'
-
The renderer used to convert docstrings (e.g. to markdown).
options : 'dict | None' = None
-
Default options to set for all pieces of content (e.g. include_attributes).
out_index : str = None
-
The output path of the index file, used to list all API functions.
sidebar : 'str | dict[str, Any] | None' = None
-
The output path for a sidebar yaml config (by default no config generated). Alternatively, can be a dictionary of Quarto sidebar options with an additional
file
key containing the output path for the sidebar YAML config file (by default_quartodoc-sidebar.yml
if not specified). css : 'str | None' = None
-
The output path for the default css styles.
rewrite_all_pages : = False
-
Whether to rewrite all rendered doc pages, or only those with changes.
source_dir : 'str | None' = None
-
A directory where source files to be documented live. This is only necessary if you are not documenting a package, but collection of scripts. Use a “.” to refer to the current directory.
dynamic : bool | None = None
-
Whether to dynamically load all python objects. By default, objects are loaded using static analysis.
render_interlinks : bool = False
-
Whether to render interlinks syntax inside documented objects. Note that the interlinks filter is required to generate the links in quarto.
parser : = 'numpy'
-
Docstring parser to use. This correspond to different docstring styles, and can be one of “google”, “sphinx”, and “numpy”. Defaults to “numpy”.