You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Older docs versions link Events and cache files by root paths that answer 404 #644
The docs site keeps a built copy of each older release's docs (a snapshot, under docs_site/versions/<version>/) and serves it under /v/<version>/. Pages in such a snapshot link some Citry files by root paths such as /citry/ext/events/assets/<hash>.css, /citry/ext/events/definitions/<hash>.js and /citry/cache/.... The snapshot keeps those files under its own folder, /v/<version>/citry/..., and the step that combines the current docs and the snapshots into one site (python -m docs_site assemble) does not copy them to the root /citry/ folder. The root folder holds only the files of the current build, whose hashes differ, so the browser gets a 404 for these links on older versions.
Steps to reproduce
Open a preview page in the 0.7.0 snapshot, for example docs_site/versions/0.7.0/ui-library/components/disclosure/_previews/at-a-glance/index.html.
Search it for /citry/ext/events/assets/. It links /citry/ext/events/assets/4e1101c3de0b578e3665eccc0cb4fc8261d3f30df15f3cb094dd70ee788c5972.css (a root path).
The file exists at docs_site/versions/0.7.0/citry/ext/events/assets/..., which the site serves at /v/0.7.0/citry/ext/events/assets/....
Run python -m docs_site assemble and look in the root citry/ext/events/assets/ folder of the output. The 0.7.0 file is not there, so the root path answers 404.
Expected
Each snapshot page loads the Events definitions, stylesheets and cached files it was built with.
Notes
The assembly step already copies each snapshot's hashed runtime files to the root citry/ folder (_share_snapshot_runtimes, added with #578). Two possible fixes: copy these files the same way (they are named by hash, so versions cannot overwrite each other), or have the snapshot build write these links under the snapshot's own /v/<version>/ prefix.
Activity