Merge pull request 'Point the site at the plugin listing, and clear a critical Astro advisory' (#17) from feat/link-plugin-listing into main
Promote → GitHub / push-github (push) Failing after 6s
CI / build (push) Successful in 13s

This commit was merged in pull request #17.
This commit is contained in:
chrnx committed 2026-09-24 16:28:29 +00:00
commit 4b73076aa5
6 files changed
+940 -755

No files matched your search

+823 -752
View File
File diff suppressed because it is too large. Load diff
+3 -3
View File
@@ -16,9 +16,9 @@
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"@astrojs/mdx": "^7.0.5", "@astrojs/mdx": "^7.0.8",
"@astrojs/rss": "^4.0.19", "@astrojs/rss": "^4.0.19",
"@astrojs/sitemap": "^3.7.3", "@astrojs/sitemap": "^3.7.4",
"astro": "^7.1.6" "astro": "^7.3.5"
} }
} }
+1
View File
@@ -6,6 +6,7 @@ const linkColumns = [
heading: 'Learn', heading: 'Learn',
links: [ links: [
{ label: 'Docs', href: 'https://green-tea.expressive-tea.io/docs', external: true }, { label: 'Docs', href: 'https://green-tea.expressive-tea.io/docs', external: true },
{ label: 'Plugins', href: '/plugins/', external: false },
{ label: 'Blog', href: '/blog', external: false }, { label: 'Blog', href: '/blog', external: false },
], ],
}, },
+1
View File
@@ -6,6 +6,7 @@ import Icon from './Icon.astro';
// name — an icon-only link without one is a link a screen reader announces as its href. // name — an icon-only link without one is a link a screen reader announces as its href.
const navLinks = [ const navLinks = [
{ label: 'Docs', href: 'https://green-tea.expressive-tea.io/docs', external: true }, { label: 'Docs', href: 'https://green-tea.expressive-tea.io/docs', external: true },
{ label: 'Plugins', href: '/plugins/', external: false },
{ label: 'Blog', href: '/blog', external: false }, { label: 'Blog', href: '/blog', external: false },
{ label: 'GitHub', href: 'https://github.com/Expressive-Tea/green-tea', external: true, icon: 'github' as const }, { label: 'GitHub', href: 'https://github.com/Expressive-Tea/green-tea', external: true, icon: 'github' as const },
{ label: 'npm', href: 'https://www.npmjs.com/package/@green-tea/core', external: true, icon: 'npm' as const }, { label: 'npm', href: 'https://www.npmjs.com/package/@green-tea/core', external: true, icon: 'npm' as const },
+110
View File
@@ -0,0 +1,110 @@
---
// The way into the plugin listing, which is its own build under /plugins (green-tea-marketplace).
// The descriptions are each package's own, as the listing shows them. When a plugin is added
// there, it does not appear here: this is a sample, and the listing is the index.
const plugins = [
{ name: '@green-tea/jwt', slug: 'jwt', body: 'Loads JWT signing keys at boot and publishes a sign/verify registry into the graph.' },
{ name: '@green-tea/metrics', slug: 'metrics', body: "Counts green-tea's lifecycle events and renders them in the Prometheus text format." },
{ name: '@green-tea/rate-limit', slug: 'rate-limit', body: 'A per-request rate limiter with a branded 429 and a swept in-memory store.' },
];
---
<section class="plugins section--panel">
<div class="wrap">
<div class="plugins__head">
<p class="kicker">Plugins</p>
<h2>Extend it with plugins.</h2>
<p class="plugins__lede">
A plugin is one object, <code>&#123; name, mount &#125;</code>, that adds providers and steps to your graph.
There are three official ones so far. Each has a page with its README, its versions and the runtimes it
supports, and yours can sit next to them.
</p>
</div>
<ul class="plugins__grid">
{
plugins.map((plugin) => (
<li class="plugins__card">
<a href={`/plugins/${plugin.slug}/`}>
<h3>{plugin.name}</h3>
<p>{plugin.body}</p>
</a>
</li>
))
}
</ul>
<div class="btn-row plugins__ctas">
<a class="btn btn--primary" href="/plugins/">Browse plugins</a>
<a class="btn btn--ghost" href="/plugins/#contribute">List yours</a>
</div>
</div>
</section>
<style>
.plugins__head {
max-width: 52ch;
margin: 0 auto 3rem;
text-align: center;
}
.plugins__head h2 {
margin-bottom: 0;
}
.plugins__lede {
margin: 1rem 0 0;
color: var(--dim);
line-height: 1.75;
}
.plugins__grid {
list-style: none;
margin: 0;
padding: 0;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.25rem;
}
.plugins__card a {
display: block;
height: 100%;
padding: 1.75rem;
background: var(--base);
border: 1px solid color-mix(in srgb, var(--dim) 18%, transparent);
border-radius: 12px;
color: inherit;
text-decoration: none;
}
.plugins__card a:hover,
.plugins__card a:focus-visible {
border-color: var(--matcha);
}
.plugins__card h3 {
color: var(--matcha);
font-size: 0.98rem;
margin-bottom: 0.5em;
word-break: break-word;
}
.plugins__card p {
margin: 0;
color: var(--dim);
font-size: 0.95rem;
line-height: 1.65;
}
.plugins__ctas {
justify-content: center;
margin-top: 2.5rem;
}
@media (max-width: 860px) {
.plugins__grid {
grid-template-columns: 1fr;
}
}
</style>
+2
View File
@@ -8,6 +8,7 @@ import HowItCompares from '../components/sections/HowItCompares.astro';
import RunsEverywhere from '../components/sections/RunsEverywhere.astro'; import RunsEverywhere from '../components/sections/RunsEverywhere.astro';
import RealTime from '../components/sections/RealTime.astro'; import RealTime from '../components/sections/RealTime.astro';
import Batteries from '../components/sections/Batteries.astro'; import Batteries from '../components/sections/Batteries.astro';
import Plugins from '../components/sections/Plugins.astro';
import SeeIt from '../components/sections/SeeIt.astro'; import SeeIt from '../components/sections/SeeIt.astro';
import Faq from '../components/sections/Faq.astro'; import Faq from '../components/sections/Faq.astro';
import HonestBeta from '../components/sections/HonestBeta.astro'; import HonestBeta from '../components/sections/HonestBeta.astro';
@@ -55,6 +56,7 @@ const structuredData = {
<SeeIt /> <SeeIt />
<RealTime /> <RealTime />
<Batteries /> <Batteries />
<Plugins />
<RunsEverywhere /> <RunsEverywhere />
<HowItCompares /> <HowItCompares />
<Faq /> <Faq />