Repository navigation
docs: add the documentation site and move the user guides into it - #116
Merged
Merged
Conversation
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
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Author
|
Cross-review (read-only, cross-family):
|
bketelsen
approved these changes
Nov 17, 2026
5 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
repogen ships a CLI and the reusable
publish-to-r2action. 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 indocs/guides/.docs/now keeps the ADRs, designs, specs and plans.Fixes #98
What changes
site/: ProperDocs with the MaterialX theme, from core'sfrostyard-docs-siteskill:properdocs.yml,requirements.in, a hash-lockedrequirements.txt, the Frostyard stylesheet, and pages: home, install, usage, client setup, publish-to-r2, the command reference (fromrepogen generate --help) and build from source.docs/guides/moves intosite/content/withgit mv(development.mdbecomescontributing/build.md). Links from the pages to repository files become absolutehttps://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 intosite/dist) andmake site-serve.make cidoes 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 touchsite/**, theMakefileor the workflow, and deploys to GitHub Pages frommainonly.scripts/check-docs.mjs: checks the relative links of every page undersite/content/(somake cicatches a dead page link without a Python toolchain), drops theguidescategory, and skipsbuild/(the site venv holds symlinks that point outside the repository).internal/baseline:TestRepositoryBaselineB9DocsSitechecks row B9 (site files tracked, every lock requirement hashed, thesite/site-serverules and.PHONY, the strict build, the workflow runsmake site, the README links the site,site_url, every page innav, no file left indocs/guides/), with a table test of each helper.README.mdlinks 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.ymlmatches.github/workflows/**(L1, secrets and credentials). Safe: the workflow uses no secret; the build job hascontents: readonly and checks out without persisted credentials; only the deploy job haspages: writeandid-token: write, and it runs only onmain(never on a pull request). The file is the skill's template unchanged except its header comment. The existing glob already covers it, sorisk-paths.jsonneeds no change.Makefilematches{Makefile,mise.toml,mise.lock}(L1, publication). Safe: the change adds thesiteandsite-servetargets, a help line, and.PHONYnames;bump,ciand 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.make test-packages-dockerandmake test-integration(no Docker on this host). This PR changes no Go code outsideinternal/baseline; CI runs both.04307ff:site/content/guides/usage.mdmakesnode scripts/check-docs.mjsexit 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.ymlmakesgo test ./internal/baseline -run B9failTestRepositoryBaselineB9DocsSite(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 onmain(Actions > Site > Run workflow), and https://frostyard.github.io/repogen/ answers 200.