pagespublish

command
v0.167.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command pagespublish puts one documentation build into a checkout of a gh-pages branch, the way mike did it, so that every published version keeps its own path.

pagespublish <version> <built site> <gh-pages checkout>

<version> is MAJOR.MINOR (0.16) or "main" while no release is tagged. The build replaces <pages>/<version>/ and nothing else; then, from the directories present:

versions.json   mike's format ({version, title, aliases}), newest release
                first and "main" last, which is what the Hextra fork's
                version selector reads
latest          a link to the newest release, or to main when none
index.html      the root, redirecting to latest/, as mike wrote it

⛔ IT EXISTS BECAUSE A HAND-WRITTEN PUBLISH STEP GOT THE PATH WRONG, in 76 repositories at once. The workflow mkdocs2hextra generated copied the built site to `docs/<version>/` inside gh-pages — but a project repository called `docs` is already served at `/docs/`, so the site landed at `/docs/docs/main/` while `/docs/latest/` went on serving the MkDocs build mike had left there. Both URLs answered 200, which is why no check caught it: the site was published, just not where anything links.

⛔ AND IT IS GO RATHER THAN THE SHELL SCRIPT IT REPLACES. The fleet's reference site carries a 60-line scripts/publish-version.sh; copying that into 76 repositories would be 76 copies of untested shell, and the house rule is Go. One command, one test suite, called in one line from every workflow.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL