Skip to content

docs: documenting your schemas with comline doc - #111

Merged
Kinflou merged 1 commit into
mainfrom
docs/autodoc
Nov 1, 2026
Merged

Kinflou merged 1 commit into
mainfrom
docs/autodoc

Conversation

@Kinflou

@Kinflou Kinflou commented Nov 1, 2026

Copy link
Copy Markdown
Member

Part of ComlineProject/core#145, step 7 of the autodoc cascade. Not closing it: rendering std onto this site (the issue's proof of the Markdown renderer) is the next step, and hiding a unit is still to be confirmed.

  • Guide: Documenting your schemas (guide/documenting.md): writing /// and //! docs, comline doc, putting the pages on a mkdocs/zensical site, dependency links, documenting a built version, the JSON model, external renderers, the settings table, and std rendering as what's next.
  • Reference: the comline doc row in reference/cli.md and a page, reference/tools/doc.md (in the nav under Tools).
  • comline.toml: the [doc] keys (out, format, renderer, timeout, links, changelog_from).
  • Generator protocol: the Render request, Response::Render, Description.renderers, the renderer check, and the rule for when PROTOCOL_VERSION moves (an additive change keeps it).
  • Schemas: core's schemas/doc-model.json served at schemas/doc-model/1.json (its $id). scripts/sync-comline-toml-schema.py now checks both copies (--core-rev pins core's), and the Schema drift workflow says so. schemas/comline-toml/0.x.json refreshed from generation 7b51264.
  • Docstrings: module docs are now stored with each build (core#152), so the line saying they don't change a build is corrected.

Merge order: after ComlineProject/generation#95, or the schema drift check fails (it compares the comline.toml copy with generation's HEAD, which doesn't have [doc] yet; the doc-model copy already matches core's master). The CLI drift check needs ComlineProject/cli#111 merged first, as usual.

Local: zensical build --strict (no issues), no unrendered template syntax, check-cli-drift.py against the cli#111 binary (no drift), schema sync against the pinned revs.

A Guide page, the `comline doc` reference row and page, comline.toml's
`[doc]` keys, `Render` in the generator protocol, and the documentation
model's JSON Schema served at `schemas/doc-model/1.json` with a drift
check beside the comline.toml schema's. The comline.toml schema copy is
refreshed for `[doc]`. Module docs are now stored with each build, so the
docstrings page says so.
@Kinflou
Kinflou merged commit 741c9f2 into main Nov 1, 2026
5 of 7 checks passed
@Kinflou
Kinflou deleted the docs/autodoc branch November 1, 2026 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant