msaUtils Module¶
.gen_ref_pages
¶
Generate the code reference pages and navigation.
Functions¶
format_pip_result ¶
Internal support function, there should be no need to call this directly
generate_code_reference_documentation ¶
generate_code_reference_documentation(
virtual_ref_nav_path: str = "reference",
ref_md_file: str = "SUMMARY.md",
virtual_requirements_nav_path: str = "requirements",
req_md_file: str = "requirements.md",
source_path: str = "msaUtils",
source_file_type_filter: str = "*.py",
requirement_file: str = "requirements.txt",
md_file_type: str = ".md",
recreate_pip_info: bool = False,
exclude_functions: List[str] = [
"__init__",
"__main__",
"main",
"run",
],
pkl_info_file: str = "docs/saved_req_package_pip_info.pkl",
)
Generates the virtual mkdocs md files and adds them to the navigation.
Note
That is the function you should call from mkdocs with mkdocs.yml config:
In that gen_ref_pages.py call: generate_code_reference_documentation()
Scans the requirement file and gets pip show info for each package and stores it to a pickle file.
PARAMETER | DESCRIPTION |
---|---|
virtual_ref_nav_path |
internal node name for the created reference docu
TYPE:
|
ref_md_file |
str = reference md file, shouldn't be changed
TYPE:
|
virtual_requirements_nav_path |
str = the virtual nav path
TYPE:
|
req_md_file |
name of the requirement md file
TYPE:
|
source_path |
the path to the package/source code root to document everything below and in that dir
TYPE:
|
source_file_type_filter |
filetype to document, should be .py
TYPE:
|
requirement_file |
name of the requirement file to analyze for used libraries
TYPE:
|
md_file_type |
md file filetype, should be .md
TYPE:
|
recreate_pip_info |
recreate the pip analyze, when you changed requirement file, you also can just delete the pkl file
TYPE:
|
exclude_functions |
list of functions to exclude
TYPE:
|
pkl_info_file |
str = the filepathname of the pkl file to store the pip information result
TYPE:
|
generate_sub_process_result ¶
Internal support function, there should be no need to call this directly
Created: September 24, 2022