Skip to content
Corex

DocsGenerator

Corex\Cli\Docs\DocsGenerator · class · CLI layer

Walks the configured source trees, reads each class to a ClassDoc, renders it to Markdown, and writes one page per class under <output>/<layer-slug>/<class-slug>.md — so the Internals Reference is generated from the code and can’t drift. A file that fails to parse is skipped, never fatal. Pure orchestration over the (pure) reader + renderer; only the final write touches the filesystem.

__construct(ClassDocReader $reader, MarkdownDocRenderer $renderer)

Section titled “__construct(ClassDocReader $reader, MarkdownDocRenderer $renderer)”

generate(array $layers, string $outputDir): array

Section titled “generate(array $layers, string $outputDir): array”