feat: API freeze banner (merge at RC.1) #22

Merged
chrnx merged 8 commits from feat/api-freeze-banner into main 2026-11-17 23:20:45 +00:00
2 changed files with 45 additions and 0 deletions
Showing only changes of commit 8a11f6a540 - Show all commits

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 Header from '../components/Header.astro';
import Footer from '../components/Footer.astro'; import Footer from '../components/Footer.astro';
import StabilityBanner from '../components/StabilityBanner.astro';
import '../styles/global.css'; import '../styles/global.css';
type OpenGraphType = 'website' | 'article'; type OpenGraphType = 'website' | 'article';
@@ -97,6 +98,7 @@ const serializedStructuredData = structuredData
src="//gc.zgo.at/count.js"></script> src="//gc.zgo.at/count.js"></script>
</head> </head>
<body> <body>
<StabilityBanner />
<Header /> <Header />
<main> <main>
<slot /> <slot />