bundles / papyri 0.0.10 / papyri / gen / gen_main
function
papyri.gen:gen_main
source: /papyri/gen.py :231
Signature
def gen_main ( infer : bool | None , exec_ : bool | None , target_file : str , debug : bool , * , dummy_progress : bool , dry_run : bool , api : bool , examples : bool , fail : bool , narrative : bool , fail_early : bool , fail_unseen_error : bool , limit_to : list[str] ) → Path | None Summary
Main entry point to generate DocBundle files.
Extended Summary
This will take care of reading single configuration files with the options for the library you want to build the docs for, scrape API, narrative and examples, and put it into a doc bundle for later consumption.
Parameters
infer: bool | NoneCLI override of whether to run type inference on examples
exec_: bool | NoneCLI override of whether to execute examples/code blocks
target_file: strPatch of configuration file
dummy_progress: boolCLI flag to disable progress that might screw up with ipdb formatting when debugging.
api: boolCLI override of whether to build api docs
examples: boolCLI override of whether to build examples docs
failTBD
narrative: boolCLI override of whether to build narrative docs
dry_run: booldon't write to disk
debug: boolset log level to debug
fail_early: booloverwrite early_error option in config file
fail_unseen_error: boolraise an exception if the error is unseen
Returns
: Path | NonePath to the generated DocBundle directory, or None if dry_run is True.
Aliases
-
papyri.gen.gen_main