diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 4b5aa15..01d4b52 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -6,6 +6,7 @@ const linkColumns = [ heading: 'Learn', links: [ { label: 'Docs', href: 'https://green-tea.expressive-tea.io/docs', external: true }, + { label: 'Plugins', href: '/plugins/', external: false }, { label: 'Blog', href: '/blog', external: false }, ], }, diff --git a/src/components/Header.astro b/src/components/Header.astro index a1c1040..8dccb82 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -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. const navLinks = [ { 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: '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 }, diff --git a/src/components/sections/Plugins.astro b/src/components/sections/Plugins.astro new file mode 100644 index 0000000..0a38d35 --- /dev/null +++ b/src/components/sections/Plugins.astro @@ -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.' }, +]; +--- + +
+
+
+

Plugins

+

Extend it with plugins.

+

+ A plugin is one object, { name, mount }, 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. +

+
+ + + + +
+
+ + diff --git a/src/pages/index.astro b/src/pages/index.astro index 2adb07b..243938d 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -8,6 +8,7 @@ import HowItCompares from '../components/sections/HowItCompares.astro'; import RunsEverywhere from '../components/sections/RunsEverywhere.astro'; import RealTime from '../components/sections/RealTime.astro'; import Batteries from '../components/sections/Batteries.astro'; +import Plugins from '../components/sections/Plugins.astro'; import SeeIt from '../components/sections/SeeIt.astro'; import Faq from '../components/sections/Faq.astro'; import HonestBeta from '../components/sections/HonestBeta.astro'; @@ -55,6 +56,7 @@ const structuredData = { +