Skip to content

Decide fate of cmd/configdocsgen after Markdoc docs refactor #820

@leggetter

Description

@leggetter

Context

Documentation source moved from Zudoku (docs/pages/**/*.mdx) to Markdoc under docs/content/**/*.mdoc, with self-hosted configuration documented at docs/content/self-hosting/configuration.mdoc.

Current state of configdocsgen

  • cmd/configdocsgen reflects internal/config and injects generated environment variable and YAML example blocks into a target file between MDX-style placeholders ({/* BEGIN AUTOGENERATED ... */}).
  • Defaults still point at the removed path docs/pages/references/configuration.mdx (see internal/config/config.go //go:generate and make docs/generate/config).
  • The new configuration.mdoc is hand-curated (sectioned tables, different column layout, short YAML snippet). It does not contain autogen placeholders and is not the same shape as the generator output (one large table + full generated YAML).

Questions for the team

  1. Do we still want a generated config reference, or is manual configuration.mdoc enough?
  2. If we keep generation, should we:
    • repoint the tool to .mdoc and use Markdoc-safe placeholders (e.g. HTML comments instead of {/* ... */})?
    • emit a separate generated page (e.g. full env var matrix) and link it from the curated configuration page?
    • invest in grouped output to match the current section structure?
  3. If we retire the generator: remove //go:generate, Makefile target, and cmd/configdocsgen, or leave a short note in contributing/ so the decision is documented.

Related

  • contributing/.plans/2025-05-26-config-documentation-synchronization.md (original plan; pre-refactor paths).

Opened to decide policy after the docs layout change; no code change required to close this—just a team decision and follow-up issues if needed.

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