Skip to content

Older docs versions link Events and cache files by root paths that answer 404 #644

Open

Description

@JuroOravec

What happens

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

  1. 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.
  2. Search it for /citry/ext/events/assets/. It links /citry/ext/events/assets/4e1101c3de0b578e3665eccc0cb4fc8261d3f30df15f3cb094dd70ee788c5972.css (a root path).
  3. 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/....
  4. 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

  1. added
    next-sprint
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    next-sprint

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions