bundle.docs.discovery¶
Attributes¶
Functions¶
|
Read pyproject.toml and return project metadata and package layout. |
|
Recursively find all README.md files in the package tree. |
|
Find all Python subpackages (directories with __init__.py). |
Module Contents¶
- bundle.docs.discovery.log¶
- bundle.docs.discovery.discover_project(source_dir: pathlib.Path) dict[source]¶
Read pyproject.toml and return project metadata and package layout.
- Parameters:
source_dir – Project root directory containing pyproject.toml.
- Returns:
name, version, author, package_dirs.
- Return type:
Dictionary with keys
- bundle.docs.discovery.find_readme_files(package_root: pathlib.Path) list[pathlib.Path][source]¶
Recursively find all README.md files in the package tree.
- Parameters:
package_root – Root directory of the Python package.
- Returns:
Sorted list of README.md paths found.
- bundle.docs.discovery.find_subpackages(package_root: pathlib.Path) list[str][source]¶
Find all Python subpackages (directories with __init__.py).
- Parameters:
package_root – Root directory of the Python package.
- Returns:
Sorted list of subpackage names.