Skip to content

Fix: build the generated pages in CI, and fail when they fall back - #3

Merged
SandObserver merged 1 commit into
mainfrom
fix/ci-builds-real-generated-pages
Aug 22, 2026
Merged

SandObserver merged 1 commit into
mainfrom
fix/ci-builds-real-generated-pages

Conversation

@SandObserver

Copy link
Copy Markdown
Owner

Summary

  • CI now clones the application repository and sets STACKYARD_REPO, so the
    development and changelog pages are generated from real content rather than
    rendering their fallback link.
  • scripts/check-dist.mjs gains a genpage check that fails when either page
    ships its fallback, so the condition cannot return unnoticed.

Without the checkout, /docs/changelog/ built to 171 characters instead of
36,646, and /docs/development/ to 647 instead of 3,874. Every existing check
passed against that, because a fallback page is still a valid page with working
links.

The clone is unauthenticated: the application repository is public, and only its
CONTRIBUTING.md and CHANGELOG.md are read.

Testing
npm run build and npm run check pass with the repository present. Verified
the new gate by building with STACKYARD_REPO=/nonexistent: both pages were
reported and the run failed. Building normally restored a pass.

Checklist

  • npm run build and npm run check both pass.
  • Product UI is shown by running or capturing it, never recreated in CSS.
  • Any new preview or screenshot carries no private hostnames or real data.
  • Visual changes verified in both colour schemes and both docs themes.
  • Links to the app repo still resolve.

The development and changelog pages are generated from the application
repository at build time. CI had no checkout of it, so both rendered their
fallback link and every check passed against a site two pages short of the real
one. The changelog page was 171 characters instead of 36,646.

CI now clones the application repository and points STACKYARD_REPO at it. The
check script fails when either page ships its fallback, so the condition cannot
return unnoticed.
@SandObserver SandObserver added the github_actions Pull requests that update GitHub Actions code label Aug 22, 2026
@SandObserver
SandObserver merged commit 68e1d6b into main Aug 22, 2026
1 check passed
@SandObserver
SandObserver deleted the fix/ci-builds-real-generated-pages branch August 22, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant