From 6a9fca5359b76849cdcad4040d1258dd8cf8eccd Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 25 Oct 2026 15:44:08 -0500 Subject: [PATCH 01/46] fix(site[notice]) Describe the 0.1.N releases instead of an alpha why: Every port but Python, C++ and Julia ships 0.1.0 as its first final release, so a bar saying the site documents an alpha misstates what a reader installs. The APIs and the site's URLs can still move, and the bar should say that. what: - Reword the bar: libtmux is released, APIs may still change between releases, and the site's structure and URLs may change too - Rename the badge to "Early release" and the dismiss label to match - Store dismissal under libtmux-docs.release-notice-0.1, so readers who dismissed the alpha notice see the changed message once - Keep the data-prerelease attribute and CSS classes, which the critical CSS and ThemeScript already share - Test the wording, the label and the new key --- site/src/components/PrereleaseNotice.astro | 15 +++++++++------ site/src/components/ThemeScript.astro | 2 +- site/test/prerelease-notice.test.ts | 16 ++++++++++++++-- 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/site/src/components/PrereleaseNotice.astro b/site/src/components/PrereleaseNotice.astro index bf0832080..33f1d10d5 100644 --- a/site/src/components/PrereleaseNotice.astro +++ b/site/src/components/PrereleaseNotice.astro @@ -1,11 +1,14 @@ --- /** - * The bar that says this site describes an alpha. + * The bar that says the libraries are released but still change between releases. * * Sits directly under the header and scrolls away with the page rather than * pinning: the header is `sticky top-0`, and a second sticky strip would take * a permanent bite out of every viewport for a sentence a reader needs once. * + * The storage key names the release line. A reader who dismissed the alpha + * notice under the old key sees this one, because it says something else. + * * Dismissal is remembered, and the remembering has to survive first paint. * `ThemeScript` reads the key in and sets `data-prerelease` on the * root before any body markup is parsed, so a reader who has dismissed this @@ -28,17 +31,17 @@ const { centered = false } = Astro.props

- Prerelease + Early release - This site documents an alpha of libtmux. Its structure, - URLs and APIs are subject to change. + libtmux is released, and its APIs may still change between releases. + This site's structure and URLs may change too.

@@ -241,9 +242,6 @@ if (!mark(nodes)) {
} - {presentation && glossaryHref && {glossaryLabel}}