web/website/docs/shared-chrome.md

20 lines
1.2 KiB
Markdown

# One published header and footer
The build exports the same compiled navigation JavaScript, CSS, release metadata,
menu badges and public rates page served by the website Worker into
`dist/shared-chrome`. The current version is read from `web/release.json`; the
branding builder no longer keeps a second version literal.
After the first artifact containing these files is published, run
`scripts/install-shared-chrome.py` to inspect the alias plan, then `--apply`.
It changes only the existing shared asset alias targets in the four known nginx
configuration files, preserves response headers, validates nginx and rolls back
the configuration if validation/reload fails. Native applications retain their
existing `/dune-navigation.*` URLs while sharing the same compiled files.
Aliases follow the atomic `current` release symlink, so future successful pushes
update all connected headers and rates without copying host-specific files.
Use `--legacy --apply` before rolling back to a historical release from before
shared-chrome artifacts existed. The old static files are retained for that
explicit rollback. A shared navigation change marks affected menu destinations
as updates; untouched workspace sections retain no update badge.