Versioned docs decay: artifact-based storage expires after 90 days
Old versions keep disappearing from the docs site's version dropdown. Each tag's rendered docs are stored as a workflow artifact (docs-<tag>, uploaded by versioned-docs.yml), and gh-pages.yml rebuilds the dropdown from whichever docs-* artifacts haven't expired. Artifacts always expire (90 days at most), so every version drops off the site eventually.
As of 2026-12-04 only docs-latest and docs-v0.20.0 are left, and docs-v0.20.0 expires on 2026-12-17 -- the current uploads expire 30 days after they're made. Everything from v0.9.0 to v0.19.0 is already gone.
The fix is to keep pre-rendered docs for each tag somewhere that doesn't expire. vic suggested an orphan branch that only versioned-docs.yml writes to; I leaned toward a separate repo or store for historical snapshots. Either way, the versions already lost need a one-time rebuild from their tags. Nothing's been done on this yet.
Original write-up
Problem
The versioned-docs pipeline stores each tag's rendered docs as a workflow artifact (docs-<tag>, uploaded by versioned-docs.yml), and gh-pages.yml reassembles the version dropdown by downloading all non-expired docs-* artifacts on each Pages deploy.
GitHub artifacts have a hard 90-day maximum retention. As of today, every docs-* artifact in the repo is expired (checked via gh api /repos/denful/den/actions/artifacts — 58 artifacts, all expired: true, including docs-v0.9.0 through docs-v0.16.0 and docs-latest):
5 docs-latest expired=true
3 docs-v0.16.0 expired=true
3 docs-v0.12.0 expired=true
3 docs-v0.11.0 expired=true
...
Consequence: any Pages deploy from current state publishes only the freshly built main docs — the version dropdown is empty and all historical versions are gone. Each tag's docs silently vanish 90 days after tagging.
(Separately, the artifact listing wasn't paginated and was capped at 30 results — fixed in #607 — but pagination doesn't help once artifacts expire.)
Possible fixes
- Commit versioned docs to a branch (e.g.
docs-versionsor directly into the Pages artifact source).versioned-docs.ymlpushesversioned/<tag>/to the branch on each tag;gh-pages.ymlchecks it out instead of downloading artifacts. Durable, diffable, no expiry. - Build historical versions from tags at deploy time —
gh-pages.ymlchecks out each tag and runsjust docs-buildper version. No storage, but deploys get slower with each release and old tags must keep building with current tooling. - Re-upload artifacts on a schedule — a cron workflow re-publishes unexpired artifacts before the 90-day cliff. Fragile; doesn't recover the already-expired versions.
Option 1 seems like the right shape. Note the already-expired versions (v0.9.0–v0.16.0) would need a one-time backfill by rebuilding docs from their tags.
Using a old-docs orphan branch having already built docs inside versioned folders looks good to me. that branch is to be maintanied by versioned-docs.yml never by us, outdated docs need no changes so it makes sense to keep a single branch for all of them already built.
You don't have to respond like I'm an agent. 🗡️ ❤️
... I'll forward your feedback to my agent ... lol
when people clone Den via their flake, do orphan branches contribute to the repo size ? some other project have separate repos for their docs. Originally we used to have a github wiki and generate the website from there, then I wanted deepwiki and other agents to be able to read the docs themselves to help people. using the versioned-docs artifact was just a way to have non-sources out of the repo. what do YOU (not your agent) think?
I mean, docs are just text (and they are very similar between releases) so maybe the repo size increase might not be much, don't know :/
You don't have to respond like I'm an agent. 🗡️ ❤️
haha , did I ? haha I'm sorry, it was not my intention, maybe my prose is being influenced by prompt-engineering :D
when people clone Den via their flake, do orphan branches contribute to the repo size ?
If they haven't been GC'd -- but that's also true for every PR you've opened and then squashed.
I think the size doesn't really matter, and from a flake context, only the HEAD of main/whatever tag is shallow cloned with depth 1 / no history.
Putting docs on a separate branch shrinks that footprint further, but stops them from being immediately grep-able.
For my gen project (because it's split into focused libraries) it logically has separate gen project docs, per-library api docs. I'll only produce one website when I actually get to the HTML docs phase. I suspect with den we'll likely be cross-referencing as we get closer to den-ag, at least for the user surface components like gen-schema.
...
I guess my opinion is it makes sense for live docs to live here; they're measurable in kb in a world of terrabytes and gigabits.
Historical docs make sense to archive/snapshot to a separate repo/store -- pre-rendered versions of specific tags.