module_map
mkdocs_terok.module_map
¶
Module map generator — module and class docstrings grouped by layer.
Walks the source tree, extracts module-level and class-level docstrings
via AST (no imports executed), and renders them as a single markdown
page. When tach.toml is present, files are assigned to layers via
the [[modules]] entries and ordered by the layers list.
Otherwise files are grouped alphabetically by subdirectory.
FileType
¶
Bases: Enum
Module classification heuristic for rendering style.
Source code in src/mkdocs_terok/module_map.py
251 252 253 254 255 256 | |
ModuleMapConfig
dataclass
¶
Configuration for the module map generator.
Source code in src/mkdocs_terok/module_map.py
22 23 24 25 26 27 28 29 | |
generate_module_map(config=None)
¶
Generate a module map page from source docstrings.
Returns a markdown string with module and class docstrings grouped by architectural layer.
Source code in src/mkdocs_terok/module_map.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |
main()
¶
Generate a module map from the command line.
Source code in src/mkdocs_terok/module_map.py
530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 | |