Conversation
demo/ no longer vendors copies of the viewer's index.html/app.css/app.js. The Pages workflow now runs demo/build_demo.py, which builds the site from web/ (the single source of truth) plus demo/summary.json, applying the demo deltas mechanically: static ./summary.json data source, relative asset paths, demo title/heading, synthetic-data banner and footer. Every substitution asserts its anchor matched exactly once, so viewer drift fails the deploy instead of silently publishing a stale or broken demo. The deploy also triggers on web/** changes now. Closes #19
This was referenced Jul 22, 2026
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.
Closes #19
Summary
demo/index.html,demo/app.css,demo/app.js— the drift risk flagged in issue Deploy a demo site with dummy-account data to GitHub Pages #15's design and PR Deploy static demo site with synthetic data to GitHub Pages #16.demo/build_demo.py: builds the demo site fromweb/(now the single source of truth) +demo/summary.json, mechanically applying the demo deltas (static./summary.jsonfetch, relative asset paths, demo title/heading, synthetic-data banner/footer). Each substitution asserts its anchor text matched exactly once — ifweb/evolves in a way the transform doesn't understand, the deploy fails loudly rather than shipping a broken demo._site/instead ofdemo/, and now also triggers onweb/**so viewer changes redeploy the demo automatically.Testing
web/app.jsfails the build with a clear assertion pointing at the drifted anchor; restoring it builds clean._site/is gitignored so local builds can't be committed accidentally.