Skip to content

Docs: update documentation to zensical and enable versioning - #469

Merged
bhargavasana merged 6 commits into
mainfrom
docs/zensical-versioning
Nov 12, 2026
Merged

bhargavasana merged 6 commits into
mainfrom
docs/zensical-versioning

Conversation

@bhargavasana

Copy link
Copy Markdown
Collaborator

Proposed changes

Moves the documentation build from MkDocs to Zensical and publishes versioned docs, so every release keeps its own copy of the docs at https://sandag.github.io/ABM/.

Why now: MkDocs 2.0 drops plugin support and breaks Material for MkDocs, and Material is in maintenance mode with an end-of-life date of May 5, 2027. Zensical is the Material team's successor and builds the existing mkdocs.yml and Markdown; the site looks the same.

  • Zensical build: removes three unused plugins and replaces mermaid2 with Zensical's built-in Mermaid support. The classic theme variant keeps the current look.
  • Versioned docs with mike (the Zensical team's fork, pinned to a commit):
    • dev is updated on every push to main.
    • X.Y.Z is added for every release tag vX.Y.Z.
    • latest moves only when a tag is the highest full release, so ABM3 patch releases won't take it from ABM4. Pre-release tags never become latest.
    • The version menu labels latest, and a banner on every other version links back to it.
  • New workflow (.github/workflows/docs.yml): a strict build check on PRs that touch the docs, and publishing on pushes to main and on release tags. The old workflow rebuilt one unversioned site and replaced the whole gh-pages branch on every run.
  • Content fixes: 108 file-name placeholders such as SR2_<time period> were showing as SR2_<>, because browsers read them as HTML tags. Also fixes a broken "Go To Top" link.
  • docs/README.md rewritten: uv setup, local preview, the strict check, and how publishing works.

Impact

  • Readers can see the docs for the release they're running, not just the newest. The front page goes to the latest release.
  • Contributors get a one-command local preview, and docs PRs get an automatic build check.
  • 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?

  • Strict Zensical build with no warnings.
  • Checked the version menu and banner in a browser with three versions deployed.

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

  • Follow-up: a separate small PR adds a one-time workflow that publishes old docs (v15.0.0 to v15.5.1) from their tags, points the front page at the latest release, and forwards the old page addresses to it. Until it runs, the current site stays as it is, and new docs changes appear under /dev/.
  • The mike fork is a stopgap until Zensical ships native versioning, so it's pinned to a commit.
  • Considered VitePress instead: it has no built-in versioning, and 4 of the reference pages fail to build as Vue templates.
  • When the ABM3 branch is created, branch it from main after this merges, so its release tags publish docs too.

@bhargavasana
bhargavasana requested a review from cundo92 November 9, 2026 20:15

@cundo92 cundo92 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bhargavasana I was able to follow all the instructions under the docs/README.md and successfully built a local version of the site without any issues. I also noted your changes to "<" and ">" characters and can confirm they are rendering as intended.

@bhargavasana
bhargavasana merged commit 1d466ed into main Nov 12, 2026
2 checks passed
@bhargavasana
bhargavasana deleted the docs/zensical-versioning branch November 12, 2026 21:28
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