Config Setup
Description
action = "init"
initializes the auto-generated documentation and will automatically create the quarto website template including a _quarto.yml
file and pyp.sass
. Will thorw an exception one of these files already exists, except if the user allows for overwrite = True
(take care, the current content of _quarto.yml
will be overwritten).
action = "document"
parses the python package classes and functions and will update the man pages. It will, however, not overwrite _quarto.yml
. When used the first time, it will also initialize the output folder structure and create the required files (_quarto.yml
, pyp.sass
) similar to the init action.
Usage
Config.setup(action, package,
quarto_dir='_quarto',
man_dir='man',
output_dir='_site',
overwrite=False, include_hidden=False,
examples_dir='_examples',
docstringstyle='GOOGLE',
silent=False)
Arguments
- WARNING(missing argument definition “examples_dir” in docstring)
-
action
str
-
Action to be executed. One of
"init"
or"document"
, see method description. -
package
str
- Name of the package which should be documented.
-
quarto_dir
str
-
Output directory, defaults to
"_quarto"
. -
man_dir
str
-
Name of the directory for the manual pages (subfolder inside
quarto_dir
), defaults to"man"
. -
output_dir
str
-
Directory for the rendered quarto website, used as
output-dir
target in_quarto.yml
, relative toquarto_dir
. Defaults to"_site"
. -
overwrite
bool
-
Only used if
action = "init"
, see method description. -
bool
-
If
False
(default), classes, functions, and methods starting with an underscore will not be documented (no quarto man pages will be crated). Dunder classes, functions, and methods are always excluded. -
docstringstyle
str
-
Style of the docstrings in the package, must be one of the allowed types of the
docstring_parser
package (AUTO, EPYDOC, GOOGLE, NUMPYDOC, REST), defaults to"GOOGLE"
; not case sensitive. -
silent
bool
-
If
False
(default) some output will be produced when rendering the man pages. Can be specified to silence the execution.
Raises
-
TypeError
: If the inputs are not of the expected type. -
ValueError
: Ifaction
is not one of the allowed ones.