Repository navigation
feat(site): bundle public repo docs at build time (RIG-9139) - #73
Merged
mattwilkinsonn merged 3 commits intoNov 12, 2026
Merged
Conversation
Co-authored-by: Matt Wilkinson <matt@rigel.build>
|
Rigel public design docs preview: https://web-rig-9139-bundle-public-r.docs-2ui.pages.dev Deployed from |
Strip source frontmatter, keep link suffixes, add per-source nav, drop meissa until its testdata is excluded, and harden the fetch env. Co-authored-by: Matt Wilkinson <matt@rigel.build>
Contributor
Author
|
Review round 1 (head 66b8887): 1 high, 4 medium, 5 low.
Fixed in 9d61ffc. VM gate: 52 tests pass, and fetch + build + ref-gate:dist pass. |
Co-authored-by: Matt Wilkinson <matt@rigel.build>
Contributor
Author
|
Review round 2 (interdiff 66b8887..9d61ffc): 0 high, 1 medium, 2 low.
All-clear on ebf2022: the only change since the reviewed 9d61ffc is the one-line warning. The VM pre-push gate passed. |
rigelbuild-bot
marked this pull request as ready for review
November 11, 2026 13:02
This was referenced Nov 11, 2026
mattwilkinsonn
approved these changes
Nov 12, 2026
mattwilkinsonn
deleted the
web/rig-9139-bundle-public-repo-docs-at-build-time
branch
November 12, 2026 21:48
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.
This PR is part of a stack containing 3 PRs:
mainSummary
The public docs site bundles markdown from our public repos at build time. Each build fetches every source's
mainover anonymous HTTPS, bundles it with@rigelbuild/docs-bundle1.2.0, and runs a reference gate over the built output before deploy. The build holds no credential, so a private source fails the fetch.site/scripts/fetch.ts: shallow sparse clone per source; writesfetched.json; honorsDOCS_BUNDLE_PINS.site/scripts/gather.ts,bundle-routes.ts: bundle and route each source under its mount.site/scripts/ref-gate-dist.ts: reference gate oversite/dist.site/sources.json: the public source list.deploy.yml,ci.yml,hk.pklpre-push: fetch before build; gate before deploy; daily schedule.compass-forge-testbed, and aligns twostripFirstH1tests withdocs-bundle1.2.0.Not in this change: failing the build on a broken link in the repo's own pages (it only warns).
Follow-ups: RIG-9685 (re-add meissa after its testdata is excluded), RIG-9686 (fetch clone-path tests).
Verification
On an Azure dev-offload VM:
bun test site: 52 pass, 0 fail (main: 36).bun run fetch && bun run build && bun run ref-gate:dist: pass.biome check: clean.tsc: fourDeployEnverrors indeploy.ts, the same four as main.Also drops
RigelBuild/meissauntil its testdata is excluded upstream. Adds a sidebar group per source.Not verified: a real deploy.
Risks
compass-forge-testbedshows encoded README text until fixed upstream.Refs RIG-9139
Co-authored-by: Matt Wilkinson matt@rigel.build