Skip to content

docs: add the documentation site and move the user guides into it - #116

Merged
bketelsen merged 2 commits into
mainfrom
lucilla/docs-site
Nov 17, 2026
Merged

bketelsen merged 2 commits into
mainfrom
lucilla/docs-site

Conversation

@frostyard-machines

Copy link
Copy Markdown

Why

repogen ships a CLI and the reusable publish-to-r2 action. Core ADR-0070 puts a tool's user guides on a tool site, and ADR-0084 accepts the tool's own site as its docs home (baseline row B9). Today https://frostyard.github.io/repogen/ returns 404 and the guides live only in docs/guides/. docs/ now keeps the ADRs, designs, specs and plans.

Fixes #98

What changes

  • site/: ProperDocs with the MaterialX theme, from core's frostyard-docs-site skill: properdocs.yml, requirements.in, a hash-locked requirements.txt, the Frostyard stylesheet, and pages: home, install, usage, client setup, publish-to-r2, the command reference (from repogen generate --help) and build from source.
  • docs/guides/ moves into site/content/ with git mv (development.md becomes contributing/build.md). Links from the pages to repository files become absolute https://github.com/frostyard/repogen/blob/main/... URLs, because the strict build refuses a link that leaves the docs directory. Headings take sentence case.
  • make site (strict build into site/dist) and make site-serve. make ci does not build the site.
  • .github/workflows/site.yml (the skill's template): SHA-pinned actions, permissions: {} at the top, persist-credentials: false; it builds on pull requests that touch site/**, the Makefile or the workflow, and deploys to GitHub Pages from main only.
  • scripts/check-docs.mjs: checks the relative links of every page under site/content/ (so make ci catches a dead page link without a Python toolchain), drops the guides category, and skips build/ (the site venv holds symlinks that point outside the repository).
  • internal/baseline: TestRepositoryBaselineB9DocsSite checks row B9 (site files tracked, every lock requirement hashed, the site/site-serve rules and .PHONY, the strict build, the workflow runs make site, the README links the site, site_url, every page in nav, no file left in docs/guides/), with a table test of each helper.
  • README.md links https://frostyard.github.io/repogen/; AGENTS.md, docs/README.md, docs/org-adrs.md (ADR-0070 now applied, ADR-0084 added), docs/design/ci-cd.md (new Site section) and the links in ADR-0019 follow the move.

Risk tier

L1 (risk:high expected). Matched paths in .github/risk-paths.json:

  • .github/workflows/site.yml matches .github/workflows/** (L1, secrets and credentials). Safe: the workflow uses no secret; the build job has contents: read only and checks out without persisted credentials; only the deploy job has pages: write and id-token: write, and it runs only on main (never on a pull request). The file is the skill's template unchanged except its header comment. The existing glob already covers it, so risk-paths.json needs no change.
  • Makefile matches {Makefile,mise.toml,mise.lock} (L1, publication). Safe: the change adds the site and site-serve targets, a help line, and .PHONY names; bump, ci and the tool pins are untouched.

Checks

  • make site: exit 0 (strict; Python 3.12 locally, CI uses 3.13).
  • make build, make check (tidy, vet, gofmt, lint, docs-check: 27 docs, 305 links, 9 symlinks, corrections, unit tests): pass.
  • make corrections-base BASE=origin/main, make vuln, make test-race, make build-cross: pass.
  • Not run locally: make test-packages-docker and make test-integration (no Docker on this host). This PR changes no Go code outside internal/baseline; CI runs both.
  • Guard tests, in a scratch worktree at 04307ff:
    • a dead link appended to site/content/guides/usage.md makes node scripts/check-docs.mjs exit 1 (FAIL link: site/content/guides/usage.md -> no-such-page.md does not resolve, 306 links checked);
    • git rm -r site .github/workflows/site.yml makes go test ./internal/baseline -run B9 fail TestRepositoryBaselineB9DocsSite (site/properdocs.yml must be tracked, ...).

Owner step after the merge

GitHub Pages must use GitHub Actions as its source, a repository setting:
GitHub > frostyard/repogen > Settings > Pages > Build and deployment > Source: GitHub Actions.
(Command form: gh api -X POST repos/frostyard/repogen/pages -f build_type=workflow.) Then re-run the Site workflow on main (Actions > Site > Run workflow), and https://frostyard.github.io/repogen/ answers 200.

repogen ships a CLI and the publish-to-r2 action, so its user guides belong
on a tool site (core ADR-0070; ADR-0084 accepts a tool's own site as its docs
home). docs/ keeps the ADRs, designs, specs and plans.

- site/: ProperDocs with MaterialX from core's frostyard-docs-site skill,
  with a hash-locked requirements.txt and pages for install, usage, client
  setup, publish-to-r2, the command reference and the build from source.
- docs/guides/ moves into site/content/ (git mv); links to repository files
  become absolute GitHub URLs, because the strict build refuses links that
  leave the docs directory.
- make site and make site-serve; .github/workflows/site.yml builds on pull
  requests and deploys to GitHub Pages from main.
- scripts/check-docs.mjs checks the links of the site pages, drops the
  guides category and skips build/ (the site venv holds outside symlinks).
- internal/baseline: TestRepositoryBaselineB9DocsSite checks baseline row B9.
- README.md links https://frostyard.github.io/repogen/.

Fixes #98
@github-actions github-actions Bot added level:L1 Read every line risk:high Touches a high-risk path (ADR-0068) labels Nov 17, 2026
@codecov

codecov Bot commented Nov 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@frostyard-machines

Copy link
Copy Markdown
Author

Cross-review (read-only, cross-family):

  • Reviewer: openai/gpt-6.1-sol. Coder: github-copilot/claude-sonnet-5.5, with small edits by anthropic/claude-opus-5-5.
  • Initial review: base 134ea8f2f033f049e0cb4b0370ae452dee47a049, head 04307ff2ad053d5e1edd15d3024c18359f0f3aa9: Ready, Blocking: none. Both risk paths (.github/workflows/site.yml, Makefile) were read first. 20 substantive files reviewed; site/requirements.txt, frostyard.css and logo.svg were checked to be byte-identical to the skill scaffold. 2 low, non-blocking findings: the --suite rule was missing from reference/cli.md; 2 headings were not in sentence case and a list kept ✓ glyphs.
  • Both fixed in db6d1ad. Re-review 1, delta 04307ff..db6d1ad: Ready, Blocking: none, findings: none.
  • Revert test: the guards fail without the change (see the PR body: the docs gate fails on a dead site link; TestRepositoryBaselineB9DocsSite fails without site/).
  • CI at db6d1ad: make ci, Site build, pr-triage pass; deploy skips on a pull request, as designed.

@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 17, 2026
@bketelsen
bketelsen added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit c2f9f54 Nov 17, 2026
6 checks passed
@bketelsen
bketelsen deleted the lucilla/docs-site branch November 17, 2026 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L1 Read every line ready-for-human Reviewed, CI green: ready for Brian to review and merge risk:high Touches a high-risk path (ADR-0068)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sweep: repogen/baseline-B9 no tool documentation site (site/, site.yml, Pages)

2 participants