Skip to content

docs(crds): 📝 generated+augmented Queue reference page (DOC-7 pilot)#91

Merged
konih merged 1 commit into
mainfrom
worktree-doc-7-crd-ref-pilot
Jul 9, 2026
Merged

docs(crds): 📝 generated+augmented Queue reference page (DOC-7 pilot)#91
konih merged 1 commit into
mainfrom
worktree-doc-7-crd-ref-pilot

Conversation

@konih

@konih konih commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

DOC-7 pilot — per-CRD reference docs (Queue)

Establishes the hybrid reference-doc pipeline (generated field tables + hand-authored prose) chosen with the maintainer, and ships Queue as the pilot kind. Remaining kinds follow per PR.

Pipeline

  • hack/tools/crd-ref-gen — deterministic Go generator. Reads the v1beta1 CRD OpenAPI from config/crd/bases/*.yaml and renders spec/status field tables (Field · Type · Required · Description) into the <!-- crd-ref:begin KIND --><!-- crd-ref:end --> blocks of docs/crds/*.md. Fields sorted (stable output); nested objects flattened one level (connectionRef.name); enums/maps/arrays rendered readably; descriptions pulled straight from the kubebuilder markers.
  • task docs:crd-ref regenerates the blocks.
  • hack/verify.sh gates drift (regenerate-and-diff, consistent with controller-gen / mockery / samples). Wired and proven: task verifyverify: ok.

Content

  • docs/crds/queue.md — hand-authored intro, examples, and MQSC-mapping/drift notes around the generated tables. Linked from crds/README.md and added to the mkdocs nav (Reference).

Adding the next kind (recipe)

Add docs/crds/<kind>.md with the crd-ref:begin KIND/end markers + hand-authored prose, run task docs:crd-ref, then add the nav entry + README link. One small PR per kind.

Scope

Pilot only — Queue. Topic, Channel, ChannelAuthRule, AuthorityRecord, QueueManagerConnection remain (tracked as DOC-7 in-progress).

Gates

  • task verify ✅ (includes the new docs/crds drift check)
  • task lint ✅ (golangci-lint + go-arch-lint, 0 issues); task format
  • mkdocs build ✅ clean; --strict only the pre-existing benign README/index notice
  • markdownlint-cli2 ✅ 0 errors
  • No go.mod/go.sum change (uses existing apiextensions + sigs.k8s.io/yaml deps); no generated-Go touched

Establishes the per-CRD reference-doc pipeline (hybrid: generated field
tables + hand-authored prose) and ships Queue as the pilot kind.

- hack/tools/crd-ref-gen: deterministic generator that renders spec/status
  field tables from the v1beta1 CRD OpenAPI (config/crd/bases) into the
  <!-- crd-ref:begin KIND --> ... <!-- crd-ref:end --> blocks of
  docs/crds/*.md. Fields sorted for stable output; nested objects flattened
  one level; enums/maps/arrays rendered readably.
- task docs:crd-ref regenerates the blocks; hack/verify.sh gates drift
  (regenerate-and-diff, consistent with controller-gen/mockery/samples).
- docs/crds/queue.md: hand-authored intro, examples, and MQSC-mapping notes
  around the generated field tables; linked from crds/README.md and nav.
- .gitignore: ignore a stray root crd-ref-gen binary (tool runs via go run).

Remaining kinds (Topic, Channel, ChannelAuthRule, AuthorityRecord,
QueueManagerConnection) follow per PR: add a page with markers, run the task.
Approach chosen with the maintainer (generate + augment).

Gates: verify OK (incl. new docs/crds drift check), lint OK, mkdocs build
clean, markdownlint 0.
@konih
konih merged commit e0d4059 into main Jul 9, 2026
14 checks passed
@konih
konih deleted the worktree-doc-7-crd-ref-pilot branch July 9, 2026 13:01
konih added a commit that referenced this pull request Jul 10, 2026
…ot) (#91)

Establishes the per-CRD reference-doc pipeline (hybrid: generated field
tables + hand-authored prose) and ships Queue as the pilot kind.

- hack/tools/crd-ref-gen: deterministic generator that renders spec/status
  field tables from the v1beta1 CRD OpenAPI (config/crd/bases) into the
  <!-- crd-ref:begin KIND --> ... <!-- crd-ref:end --> blocks of
  docs/crds/*.md. Fields sorted for stable output; nested objects flattened
  one level; enums/maps/arrays rendered readably.
- task docs:crd-ref regenerates the blocks; hack/verify.sh gates drift
  (regenerate-and-diff, consistent with controller-gen/mockery/samples).
- docs/crds/queue.md: hand-authored intro, examples, and MQSC-mapping notes
  around the generated field tables; linked from crds/README.md and nav.
- .gitignore: ignore a stray root crd-ref-gen binary (tool runs via go run).

Remaining kinds (Topic, Channel, ChannelAuthRule, AuthorityRecord,
QueueManagerConnection) follow per PR: add a page with markers, run the task.
Approach chosen with the maintainer (generate + augment).

Gates: verify OK (incl. new docs/crds drift check), lint OK, mkdocs build
clean, markdownlint 0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant