Repository navigation
Versioned stylesheet URLs; compact table rows on phones - #69
Merged
Merged
Conversation
GitHub Pages lets browsers reuse a file for 10 minutes, so after a deploy a returning visitor could get the new page with an old cached stylesheet. The page now links brand.css as brand.css?v=<first 10 hex of its sha256>, and the tracker's style.css with the hash of the copy the tracker serves when the page is built (hourly); if it can't be read, the link has no version and the build goes on. At 375px the published-wheels table squeezed the install command to 70px, so every row was about 344px tall. The install cell now has a minimum of 18em (an inline style; the page's CSP already allows them): rows are about 104px on a phone, and at 1280px they go from 126px to 82px with the table still 888px wide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 29, 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.
Two fixes for the gap wheels page.
Stale CSS after a deploy
GitHub Pages lets a browser reuse a file for 10 minutes, so right after a deploy a returning visitor could get the new page with an old cached stylesheet. That's how the new popover menu showed up as a full-screen box on phones today. The page now links:
brand.css?v=<first 10 hex of its sha256>, hashed fromsite/brand.cssas it's copied;/tracker/style.css?v=<hash>, from the copy the tracker serves when the page is built.main()reads it, and the page is rebuilt every hour, so the version follows the tracker within the hour. If it can't be read, the build warns, links it without a version (as before) and carries on. PyPI still decides whether the build goes ahead.The tests check both hashes, that a different stylesheet gets a different URL, and the fetch and its fallback. They never use the network.
The table on phones
At 375px the published-wheels table squeezed the install command into a 70px column. The long
pip install --extra-index-url …became a ~340px-tall column, so every row was about 344px tall and mostly empty. The install cell now has an 18em minimum, set by a small inline<style>(the page's CSP already allows inline styles, and an inline rule can't go stale in a cache):On desktop the command now wraps in three lines instead of five. Nothing else on the page moved. I compared before and after screenshots at 375px and 1280px in light and dark.
pytest: 319 passed.🤖 Generated with Claude Code