Skip to content

Docs: Build a maintainable generated API documentation pipeline #609

@MichaelFisher1997

Description

@MichaelFisher1997

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

  1. Compare Zig autodoc, custom std.zig.Ast extraction, and hybrid approaches.
  2. Define what counts as public API documentation for this repo.
  3. Prototype a minimal module API extractor for a few representative modules.
  4. Establish doc-comment standards for module and declaration docs.
  5. Add CI artifact generation targeting dev after the prototype is useful.
  6. Integrate the generated output into the Docusaurus/docs site.

Notes

This supersedes #207 rather than continuing from the abandoned #208 implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions