Skip to content

Add CLI doc generator, guides, and docs-publish workflow - #5

Merged
David-Noble-at-work merged 2 commits into
developfrom
feature/cli-docs-generator
Jan 23, 2026
Merged

David-Noble-at-work merged 2 commits into
developfrom
feature/cli-docs-generator

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

Summary

  • Adds a cmd/docgen tool that walks both writ and lore Cobra command trees and generates Docker-style CLI reference pages (markdown with Astro frontmatter)
  • Adds docs/guides/ with 10 hand-written overview docs covering getting started, writ concepts (environments, platform awareness, secrets, repositories), and lore concepts (deployment, pipeline, manifests, registry)
  • Adds .github/workflows/docs-publish.yaml that triggers on push to develop/release*/main, generates CLI docs, and opens a PR on the site repo with both generated reference pages and hand-written guides
  • Adds docs Makefile target and .gitignore entry for generated output

Test plan

  • go build ./cmd/docgen/ compiles cleanly
  • go vet ./internal/tools/docgen/ ./cmd/docgen/ passes
  • make docs generates 63 CLI reference pages (32 writ + 29 lore + 2 roots)
  • Generated markdown has correct frontmatter, options tables, parent/child links
  • Pre-commit hooks pass
  • Workflow runs on push to develop (requires SITE_DEPLOY_TOKEN secret)

David Noble added 2 commits January 23, 2026 12:39
- internal/tools/docgen: Walks Cobra command trees and generates
  Docker-style markdown pages with Astro frontmatter
- cmd/docgen: Entry point importing both writ and lore root commands
- docs/guides: Hand-written overview materials (getting started,
  writ concepts, lore pipeline, secrets, manifests, registry)
- .github/workflows/docs-publish.yaml: On push to develop/release*/main,
  generates CLI docs and opens PR on the site repo with both generated
  reference pages and hand-written guides
- Makefile: Added 'docs' target
- .gitignore: Added docs/cli/ (generated output)
Interactive script that guides through creating a fine-grained PAT
with the correct permissions (Contents + Pull requests on the site
repo), validates the token, and sets it as SITE_DEPLOY_TOKEN secret
on devlore-cli. Run periodically to rotate before expiration.
@David-Noble-at-work
David-Noble-at-work merged commit 18690af into develop Jan 23, 2026
1 check passed
@David-Noble-at-work
David-Noble-at-work deleted the feature/cli-docs-generator branch January 31, 2026 03:57
David-Noble-at-work pushed a commit that referenced this pull request Jun 7, 2026
Both were at status: draft despite shipped work; neither is complete (the #6 veneer remains):
- platform-unification.md (step 21.4): the op-free pkg/platform Composite reshape (#1-4) is committed;
  remaining are #5 (delete the redundant op managers) and #6 (the pkg.Provider veneer + consumer
  migration), both still scoped in its Work breakdown -> in-progress.
- pkg-install-reconciler.md (#9 + #6): #9 Update is complete (Part A manual + Part B auto-gate,
  committed cd92631); the stale "Remaining: #9 Part B" status line is corrected; #6 veneer remains
  -> in-progress.
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