Expand description
The Book’s release pages (web presence track, slice 3, #3868): one page per
release tag under RELEASES_DIR, an Unreleased page the stamp writes each
increment’s row into (UNRELEASED_PAGE), and an index listing every
release (INDEX_PAGE).
cargo xtask release-page cuts a release: it turns Unreleased into the page
for the workspace’s current version, starts an empty Unreleased, and adds
the release to the index. The maintainer runs it before tagging; the release
workflow refuses a tag whose page doesn’t exist.
Structs§
- Cut
- The three files a cut writes.
Constants§
- INDEX_
ANCHOR - The anchor of the release table on the index.
- INDEX_
PAGE - The index of every release.
- RELEASES_
DIR - The release pages’ directory, from the repository root.
- ROWS_
ANCHOR - The anchor of the changelog table on Unreleased and each release page.
- UNRELEASED_
PAGE - The page the stamp writes each increment’s changelog row into.
Functions§
- all_
rows - Every changelog row on every release page, Unreleased included, as one text. What a check that “this version has a changelog row” reads.
- cut
- Cut Unreleased into the release page for
version, released ondate(YYYY-MM-DD). Refuses an Unreleased with no rows: there is nothing to release. - long_
date - A date as the Book writes it:
2026-11-17→17 November 2026. - release_
page - The release page for
version, from the repository root. - release_
stem - A release page’s file stem,
v0-639-1for v0.639.1. Astro slugifies a file name into its URL and drops dots, sov0.639.1.mdwould be served at/v06391/, which another version could also claim; dashes keep the URL readable and unique. The page’s title keeps the dots. - today_
utc - Today’s UTC date as
YYYY-MM-DD, from the system clock.