module documentation
Creates reST files corresponding to Python modules for code documentation. Parses a directory tree looking for Python modules and packages and creates ReST files appropriately to create code documentation with Sphinx. It also creates a modules index (named modules.<suffix>). This is derived from the "sphinx-autopackage" script, which is: Copyright 2008 Société des arts technologiques (SAT), https://sat.qc.ca/
Function | create |
Build the text of the file and write the file. |
Function | create |
Create the module's index. |
Function | create |
Build the text of the file and write the file. |
Function | get |
Undocumented |
Function | has |
Check the given directory contains child module/s (at least one). |
Function | is |
Check if the directory is in the exclude list. |
Function | is |
Check *filename* is __init__ file or not. |
Function | is |
Check given *files* contains __init__ file. |
Function | is |
Check if we want to skip this module. |
Function | is |
Check if we want to skip this module. |
Function | main |
Parse and check the command line arguments. |
Function | module |
Join module names with dots. |
Function | recurse |
Look for every file in the directory tree and create the corresponding ReST files. |
Function | walk |
Walk through the directory and list files and subdirectories up. |
Function | write |
Write the output file for module/package <name>. |
Constant | OPTIONS |
Undocumented |
Constant | PY |
Undocumented |
Variable | template |
Undocumented |
def create_package_file(root, master_package, subroot, py_files, opts, subs, is_namespace, excludes=[], user_template_dir=None):
(source)
¶
Build the text of the file and write the file.
Parameters | |
root:str | Undocumented |
masterstr | Undocumented |
subroot:str | Undocumented |
pylist[ | Undocumented |
opts:Any | Undocumented |
subs:list[ | Undocumented |
isbool | Undocumented |
excludes:list[ | Undocumented |
userstr|None | Undocumented |