Skip to main content

Module release_pages

Module release_pages 

Source
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 on date (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-1 for v0.639.1. Astro slugifies a file name into its URL and drops dots, so v0.639.1.md would 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.