feat: announce the API freeze and deprecation policy on every page
CI / build (pull_request) Successful in 12s

A banner above the header, from core's CARD-22 and D18: the API is
frozen at RC.1, releases are fixes only until stable, and after stable
nothing is removed without at least two releases' notice. It links to
the stability page in the docs.

Merge when RC.1 is tagged, not before.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-10-30 09:43:19 -05:00
1 parent 8c67b3e06b
commit 8a11f6a540
2 files changed
+45

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
---
// Site-wide notice of the API freeze and the deprecation policy (core CARD-22, D18). It sits above
// the header on every page because it is a promise about the product, not a feature of one section.
// The full policy lives in the docs; this states only what a reader needs before upgrading.
const policyURL = 'https://green-tea.expressive-tea.io/docs/stability/';
---
<aside class="stability" aria-label="API stability">
<p class="wrap stability__text">
<strong>The API is frozen at RC.1.</strong> Until stable, releases are fixes only. After stable, nothing
is removed without at least two releases' notice.{' '}
<a href={policyURL}>Read the stability policy</a>
</p>
</aside>
<style>
.stability {
background: color-mix(in srgb, var(--matcha) 12%, var(--base));
border-bottom: 1px solid color-mix(in srgb, var(--matcha) 35%, transparent);
}
.stability__text {
margin: 0 auto;
padding-block: 0.6rem;
color: var(--ink);
font-size: 0.9rem;
line-height: 1.5;
text-align: center;
}
.stability__text strong {
color: var(--matcha);
}
.stability__text a {
color: var(--matcha);
white-space: nowrap;
}
.stability__text a::after {
content: ' →';
}
</style>
+2
View File
@@ -1,6 +1,7 @@
---
import Header from '../components/Header.astro';
import Footer from '../components/Footer.astro';
import StabilityBanner from '../components/StabilityBanner.astro';
import '../styles/global.css';
type OpenGraphType = 'website' | 'article';
@@ -97,6 +98,7 @@ const serializedStructuredData = structuredData
src="//gc.zgo.at/count.js"></script>
</head>
<body>
<StabilityBanner />
<Header />
<main>
<slot />