Skip to content

[P6] Emit machine-readable authoring metadata #47

@KayleeWilliams

Description

@KayleeWilliams

Problem

Leadtype validates frontmatter and custom MDX tags, but external tools cannot easily discover the authoring contract.

This does not mean Leadtype should become a CMS or Studio. It means Leadtype can emit machine-readable metadata that other tools can consume.

Proposal

Emit optional authoring metadata describing:

  • Collections.
  • Frontmatter schema.
  • Allowed groups.
  • Custom MDX tag inventory.
  • Required fields.
  • Generated artifact paths.
  • Lint rules or lint result categories.

Potential output:

public/docs/authoring-manifest.json

or, in package bundle mode:

docs/authoring-manifest.json

Use Cases

  • Editor integrations.
  • Docs review tooling.
  • CI checks with richer reporting.
  • Future UI/editor experiments without making Leadtype own an editor.

Acceptance Criteria

  • leadtype generate can optionally emit an authoring manifest.
  • The manifest describes collections, groups, fields, and artifact paths.
  • The manifest is stable enough for external tools to consume.
  • The feature does not introduce a Studio/editor UI.
  • Bundle mode behavior is documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions