Skip to content

Docs: cache-bust site assets, README gallery on the hanbok portrait - #16

Merged
subwaymatch merged 1 commit into
mainfrom
claude/beautiful-cannon-gsx1z7
Oct 16, 2026
Merged

subwaymatch merged 1 commit into
mainfrom
claude/beautiful-cannon-gsx1z7

Conversation

@subwaymatch

Copy link
Copy Markdown
Owner

Changes

Video showing at full size after deploy

After #15 deployed, the overview page's video could show at its full 1920 px instead of fitting the column.

The live CSS is correct. On the live site the video measures 350 px wide at a 390 px window, 680 px at 1024 and 952 px at 1440, with no horizontal overflow.

The cause is caching. GitHub Pages serves docs/assets/site.css and site.js under fixed names with Cache-Control: max-age=600. A browser could therefore load the new index.html together with a cached site.css from before the .video rule existed.

scripts/docs_layout.py now links both files with a short hash of their contents, for example assets/site.css?v=16ecc1ba1e. Any change to them gets a new URL, so a page and its stylesheet can't get out of step. The hash is computed when the docs are built, so there's nothing to maintain by hand.

README sample image

The README's operation gallery is now generated from docs/photos/hanbok-portrait.jpg instead of Gamcheon Culture Village. That's docs/previews/, which operations.html also uses. The README markdown itself is unchanged and still matches generate_previews.py --markdown.

Checks

  • python scripts/build_docs.py rebuilt all five pages. Each one now links site.css?v=… and site.js?v=….
  • I served the rebuilt docs/ locally and loaded it in Chromium at 390, 768, 1024, 1280, 1440 and 1920 px. The video fits the content column every time, and the hashed asset URLs return 200.
  • pytest: 313 passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Lpfz52CucHEw9WyhgzPjmj


Generated by Claude Code

GitHub Pages serves docs/assets/ under fixed names with a 10-minute
cache, so a browser could pair the new overview page with the old
site.css and show the video at its full 1920 px. Pages now link
site.css and site.js with a hash of their contents (?v=...), so every
change gets a fresh URL.

The README's operation gallery (docs/previews/, also used by the
operations page) is now generated from the hanbok portrait instead of
Gamcheon Culture Village.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lpfz52CucHEw9WyhgzPjmj
@subwaymatch
subwaymatch merged commit 97991ed into main Oct 16, 2026
4 checks passed
@subwaymatch
subwaymatch deleted the claude/beautiful-cannon-gsx1z7 branch October 17, 2026 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants