chrnx 34288666be fix: the contribute section is as wide as every other one
It was capped at 760px while the grid above it runs to 1120px, and since it
shares .wrap's margin: 0 auto that cap centred it — so its left edge sat inboard
of the cards and the page looked broken rather than deliberately narrow.

The cap existed for line length, which is real, but it belongs on the prose and
not on the section. That is the split the hero already used: a full-width .hero
holding a .hero__lead capped at 62ch. This now does the same.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-09-20 12:51:59 -05:00

green-tea-marketplace

The plugin listing for green-tea, served at https://green-tea.expressive-tea.io/plugins.

One YAML file per plugin under src/content/plugins/. Versions and runtimes are not stored here — they are read from npm and JSR when the site is built, so a card cannot go stale or claim support a package never declared.

npm: "@green-tea/jwt"          # at least one of npm / jsr
jsr: "@green-tea/jwt"
repo: https://github.com/Expressive-Tea/green-tea-plugins
description: "One sentence, 20–200 characters."

Naming is enforced by the content collection's schema, so a wrongly-named entry fails the build:

npm JSR
Internal @green-tea/<x> @green-tea/<x>
Third party green-tea-<x> or @scope/green-tea-<x> @scope/green-tea-<x>

Commands

npm run dev       # http://localhost:4321/plugins
npm run build     # static output in dist/
npm test          # the deploy script's self-test; no network
npm run deploy    # build, then upload — see below

Live data, and why a local build still works

scripts/registry.mjs reads npm and JSR at build time.

  • With CI=true — a registry that does not answer fails the build. A listing that silently drops a plugin, or shows last month's version, is worse than no deploy.
  • Locally — an unpublished package falls back to scripts/preview.mjs and logs a line saying so, because a site nobody can look at until its packages ship is a site nobody can design.

scripts/preview.mjs is temporary. Delete it, and its import in src/pages/index.astro, once @green-tea/jwt, @green-tea/metrics and @green-tea/rate-limit are published.

Deploy

By hand, from a maintainer's machine. The key authenticates as the whole cPanel account, so it is never a CI secret.

DEPLOY_REMOTE=green-tea.expressive-tea.io/plugins \
DEPLOY_HOST=user@host \
npm run deploy

npm run deploy -- --dry-run prints the SFTP batch without sending anything.

Two things that account forces, which no error message will explain:

  • Uploads never delete. That docroot holds .well-known/acme-challenge; a blind delete takes the certificate renewal with it. Old hashed assets simply accumulate.
  • .htaccess never travels from dist/. The one on the server carries cPanel's generated PHP handler block, which is not in this repository.

Before the first deploy, create the directory by hand — deploy.mjs starts with cd and fails if the target does not exist:

sftp -i ~/.ssh/expressive-tea-cpanel user@host
sftp> cd green-tea.expressive-tea.io
sftp> mkdir plugins
sftp> bye

Cadence: Friday, when something merged that week.

Not here yet

CI (validate.mjs and the GitHub Actions workflow that runs the registry checks on every pull request) lands after the initial deploy.

S
Description
No description provided
Readme MIT
334 KiB
0 Stars 3 Watchers 0 Forks
Languages
Astro 49%
JavaScript 31.3%
CSS 15.8%
TypeScript 3.9%