Summary
Replace the stale one-shot MDX generator proposal with a phased documentation pipeline that matches ZigCraft's current module-based architecture.
Context
The previous proposal in #207 targeted src/ and attempted to solve AST parsing, MDX output, Docusaurus structure, sidebar generation, and CI artifacts in one pass. The codebase now primarily exposes engine and world APIs through modules/*/src/root.zig, and the default branch/workflow target is dev.
Goals
- Decide the generated docs strategy before committing to a full custom generator.
- Scope generated API docs around public module exports, especially
modules/*/src/root.zig.
- Prototype against a small set of representative modules before adding CI.
- Keep Docusaurus integration and artifact publishing as later steps once output format is stable.
Proposed Phases
- Compare Zig autodoc, custom
std.zig.Ast extraction, and hybrid approaches.
- Define what counts as public API documentation for this repo.
- Prototype a minimal module API extractor for a few representative modules.
- Establish doc-comment standards for module and declaration docs.
- Add CI artifact generation targeting
dev after the prototype is useful.
- Integrate the generated output into the Docusaurus/docs site.
Notes
This supersedes #207 rather than continuing from the abandoned #208 implementation.
Summary
Replace the stale one-shot MDX generator proposal with a phased documentation pipeline that matches ZigCraft's current module-based architecture.
Context
The previous proposal in #207 targeted
src/and attempted to solve AST parsing, MDX output, Docusaurus structure, sidebar generation, and CI artifacts in one pass. The codebase now primarily exposes engine and world APIs throughmodules/*/src/root.zig, and the default branch/workflow target isdev.Goals
modules/*/src/root.zig.Proposed Phases
std.zig.Astextraction, and hybrid approaches.devafter the prototype is useful.Notes
This supersedes #207 rather than continuing from the abandoned #208 implementation.