feat(site): version supernav.js everywhere and flag docs sites that lag - #76
Merged
Merged
Conversation
supernav.js is served with a four-hour max-age and every page loaded it without a query string, so browsers kept the old top bar after #72. The hub pages and the /go/ template now load /supernav.js?v=CSS_VERSION, and build-header.py --check enforces it alongside design-system.css. check-availability.py reads each MkDocs host's home page and fails, naming the host, when its design-system.css or supernav.js URL is not at the current CSS_VERSION. DISCOVERY.md says how to bump. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013aK3gVWzNdcM3hZ2o2awK2
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.
agentrust-io.com serves
supernav.jsanddesign-system.csswithCache-Control: max-age=14400. Every hub page loaded/supernav.jswith no query string, and so did the seven MkDocs sites. On 2026-09-14, after #72 deployed the nine-link top bar, wcm.agentrust-io.com still showed the old fourteen-link bar with AGT in a browser that had visited within the previous four hours. The server was already serving the new file; the browser had no reason to ask for it.What changes
tools/build-header.pynow stamps/supernav.js?v={CSS_VERSION}on the 11 hub pages that load the top bar, next to thedesign-system.css?v=it already stamps, and--checkfails when either lags. The static catalog must still load no script, and the check enforces that too.tools/build-controls.pyemits the versioned URL in the /go/ footer, so /go/ and the 30 control permalinks match.tools/site_header.pykeeps the one constant,CSS_VERSION(still 21), and now documents that it versions both files on every AgenTrust site.tools/check-availability.py, the scheduled six-hourly check, reads the home page of each MkDocs host (trace, manifest, cmcp, ca2a, governance, tests, wcm) and fails, naming the host, when itsdesign-system.cssorsupernav.jsURL is not at the currentCSS_VERSION. It imports the number from site_header.py and adds the per-host result to availability-results.json.Bumping from now on: change
CSS_VERSIONin tools/site_header.py, run build-header.py, build-controls.py and build-discovery.py, and set the same number in the mkdocs.yml of weight-custody-manifest, agent-manifest, cmcp, ca2a, trace-spec, trace-tests and awesome-ai-governance. The availability check names any host that has not caught up.Merge order: after the Get started PR this branch is based on, and after the seven docs PRs that set
?v=21in mkdocs.yml have deployed. Until they deploy, the scheduled availability run reports those hosts as lagging.Checked
Generated with Claude Code
https://claude.ai/code/session_013aK3gVWzNdcM3hZ2o2awK2