Skip to content

Docs: add one-time workflow to publish older releases - #470

Merged
bhargavasana merged 2 commits into
mainfrom
docs/backfill-old-releases
Nov 12, 2026
Merged

bhargavasana merged 2 commits into
mainfrom
docs/backfill-old-releases

Conversation

@bhargavasana

Copy link
Copy Markdown
Collaborator

Proposed changes

Adds a one-time, manually run workflow (Docs backfill) that finishes the switch to versioned docs started in #469. When started from the Actions tab, it:

  • Publishes six older releases from their tags: v15.0.2, v15.1.0, v15.2.2, v15.3.1 (used for the 2025 Regional Plan final runs), v15.4.2 and v15.5.1, the newest patch of each minor release. They're built with the MkDocs tools they were written for, and get the version banner and "latest" label from Docs: update documentation to zensical and enable versioning #469. The tags themselves aren't changed.
  • Points latest at 15.5.1 and makes the front page open the latest release.
  • Forwards the old page addresses: the old single-version pages are replaced with forwarding pages, so existing links like .../ABM/outputs.html open the same page in the latest release. Report PDFs stay at their old addresses.

It runs only when started by hand, and it's safe to run again, for example with one more tag to add another old release later.

Impact

  • The front page switches from the old single-version site to the latest release. The version menu lists dev and the six releases.
  • Existing links to the docs keep working.
  • Releases up to 15.3.1 keep their original purple header; the SANDAG blue arrived in 15.4.
  • The site comes to about 125 MB after the run, well under GitHub Pages' 1 GB limit.
  • No model code changes.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

How has this been tested?

Ran the workflow's own steps against a copy of the live gh-pages branch, with dev already published as after #469:

  • All six releases published; latest is 15.5.1, and the front page opens it.
  • All 44 old page addresses forward to the same page in latest, including links to a section within a page.
  • In a browser: the banner and the "latest" label appear on the older versions, and the report PDFs still open at their old addresses.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Further comments

  • After merging: Actions → Docs backfill → Run workflow, keeping the default list. It takes about five minutes, then GitHub Pages updates.
  • Keep this file afterwards; it's how to add another old release if someone asks for one.
  • It pushes to gh-pages once at the end, so GitHub Pages rebuilds only once.

@bhargavasana
bhargavasana requested a review from cundo92 November 12, 2026 22:02
@bhargavasana
bhargavasana merged commit 809a4dc into main Nov 12, 2026
2 checks passed
@bhargavasana
bhargavasana deleted the docs/backfill-old-releases branch November 12, 2026 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants