Documentation
¶
Overview ¶
Command pagesretire removes the superseded MkDocs version directories from a documentation branch, so that `latest` names the Hugo build.
pagesretire [-apply] <gh-pages checkout>
⛔ IT EXISTS BECAUSE THE MIGRATION SUCCEEDED AND NOBODY COULD SEE IT. Every one of the 77 converted sites publishes a Hugo build, under the version in params.docs.version — "main", for a repository with no release tagged. But mike had left a release directory (0.1, sometimes 0.2) holding the MkDocs build, and `latest` is the newest RELEASE, so the alias went on naming the old build. The branch root redirects every reader to latest/. Measured on 2026-10-20: 75 of 77 sites served MkDocs at the only URL anything links to, and the two exceptions are the two repositories that never published a release, where the alias fell back to main.
⛔ AND IT REFUSES RATHER THAN GUESS. Deleting a published version directory cannot be undone from the branch, so every page under it must be shown to exist in the Hugo build first. Across the fleet that check read 514 pages against 673 and found none missing — but it is run per repository, because "it was true for the others" is not a measurement of this one.