Gvaste Pages
Gvaste Pages is a workspace for composing and maintaining software landing pages from reusable blocks. The editor keeps separate browser drafts, offers reference recipes, and helps review project evidence. site.yaml owns content; template.yaml owns presentation. Astro builds static HTML, CSS, selective JavaScript and assets for GitHub Pages or Cloudflare.
Open /playground/ and choose Edit, or enter through /studio/. Use Pages for drafts and recipes, Add for block details and variants, and Evidence to review missing content. Export configuration into your project; browser saves do not publish it. See the page author guide.
The structural contract says what a page can contain. The editorial rules say what it is allowed to claim: commands, screenshots, links, metrics, and product copy must come from real project evidence.
Node 22.12+ and pnpm 12 are used by this repository.
Architecture
Textsite.yaml + assets ↓validate + preset ↓kit/section-registry.json ↓Astro components ↓root + examples + playground ↓static docs/ ↓GitHub Pages / Cloudflare
site.yaml remains the authoring API. Astro is an implementation detail; generated sites do not need an application server or Astro at runtime.
See ARCHITECTURE.md.
The working specification for landing composition, semantic proof sections, page types, and section variants lives in docs/landing-system/. Page-type catalogs are kit/kinds/ (ADR 0006). v1 authoring remains preset plus the section registry.
New repository
- Use this repository as a GitHub Template.
- Replace the content in
site.yaml. - Put real screenshots/evidence in
assets/. - Run
pnpm installandpnpm build. - Preview
docs/and push when the evidence and links are correct.
The production build uses Astro.
Existing repository / drop-in
The minimal Astro engine consists of:
src/astro.config.mjskit/scripts/build-astro.mjsscripts/sync-vendor.mjsscripts/postprocess-github-bootstrap.mjsscripts/build-studio-manifest.mjsastroandyamlas dependencies
Add site.yaml and run:
Textnode scripts/build-astro.mjs site.yaml docs
For a GitHub Pages project path:
Textnode scripts/build-astro.mjs site.yaml docs /<repo-name>
The site yaml may live outside the kit. Add --single to build only that site, without the examples, playground and Studio routes:
Textnode scripts/build-astro.mjs ../my-site/site.yaml .cache/my-site --single
Read .agents/skills/gvaste-pages/references/drop-in.md for the complete contract.
Commands
| Command | Result |
|---|---|
pnpm dev | Run the Astro dev server (/playground/ Edit mode is the WYSIWYG editor; /studio/ redirects there) |
pnpm test | Run schema, registry, Astro, GitHub-signal, generated-output, and compatibility tests |
pnpm build | Build the full Astro corpus (every example) into docs/ and write the host map |
pnpm build:public | Build the deploy corpus: only examples with public: true; Wrangler runs it before every deploy |
pnpm build:site | Build the Astro deployment output without rewriting the host map |
pnpm preview | Serve docs/ |
pnpm typecheck | Type-check src/ TypeScript with tsc (strict) |
pnpm validate | Run the typecheck, tests and the production Astro build |
pnpm profile:snapshot <login> [--out assets/profile.json] | Write a public GitHub profile snapshot for profile.snapshot; --out resolves from the current directory |
pnpm construct harvest | Inventory root and example YAML plus local assets |
pnpm construct auto | Apply mechanical fills only (public github section) |
pnpm construct assist | Write distribution-review stubs the AI-assisted pass must fill first |
pnpm deploy | Publish through Wrangler, which first runs pnpm build:public |
pnpm dev:edge | Run the local Cloudflare hostname router |
Astro is a normal project dependency. The production wrapper runs the local astro binary, then copies evidence assets and restores authored documents under docs/agents/, docs/adr/, docs/studio/, docs/codemap/, docs/landing-system/, docs/architecture/, and docs/css-sanitization/.
Generated output is not source
docs/ is generated local output and is intentionally not tracked. Durable authored material under docs/agents/, docs/adr/, docs/studio/, docs/codemap/, docs/landing-system/, docs/architecture/, and docs/css-sanitization/ is preserved by the production build. That material is internal, so the deploy never uploads docs/: pnpm build:public writes .deploy/ (build output only, public examples only), and Wrangler and the Pages workflow publish that folder.
This removes source/generated drift: there is one renderer source tree and disposable output.
site.yaml
Required core fields include:
schema: gvaste-pages/v1project.nameproject.descriptionbrand.initials
Useful optional fields include preset, sections, brand.accent, brand.theme, hero, about, github, screens, demo, docs, download, commands, matrix, faq, trust, skill, links, and closing.
langsets<html lang>and the words the kit writes itself: chrome, navigation labels, shared section labels and runtime messages.enandeshave dictionaries inkit/i18n.mjs; other tags keep English words. The github, profile and workbench sections keep their own labels in English.extends: shared.yaml(or a list) loads shared yaml first, relative to the file that names it, so several sites can share identity, links and contact. Objects merge key by key; arrays and scalars in the site replace the shared ones. Required fields are checked after the merge.- Relative asset paths such as
profile.snapshotresolve from the folder of thesite.yaml. A missing file fails the build.
The formal structural contract lives in schema/site.schema.json. Editorial/evidence judgment lives in .agents/skills/gvaste-pages/references/judgment.md because a schema can reject malformed content but cannot determine whether a marketing claim is true.
Presets
| Preset | Default sections |
|---|---|
skill | hero, skill, docs, links, closing |
app | hero, demo, screens, docs, links, closing |
library | hero, docs, links, closing |
cli | hero, commands, docs, links, closing |
playground | hero, demo, docs, links, closing |
kit/section-registry.json is the canonical section vocabulary and preset contract. The Astro resolver must cover every canonical section ID.
Section system
All canonical sections render through registry template paths and one Astro adapter, src/components/sections/KitSection.astro. src/layouts/ProjectLayout.astro walks view.sections.
Current v1 IDs are:
hero, about, github, screens, demo, docs, download, commands, matrix, faq, trust, skill, links, closing.
projects (cards with name, description, stack, status, href and repo) is an implemented semantic section outside the v1 IDs, like setup and showcase.
The proposed next composition model keeps semantic constrained sections but separates proof modes such as preview, playground, terminal, code, and comparison, while allowing evidence-driven section variants. See docs/landing-system/02-section-taxonomy.md and ADR 0003. These proposed IDs are not yet v1 runtime contracts.
Static HTML is the default. Small component-local scripts handle interactions such as the demo workbench, screenshot switching, FAQ accordions, copy actions, and theme state. Gvaste Pages is not a React SPA; React islands are optional only if a future component genuinely benefits from their state/lifecycle model.
GitHub signal desk
The github section is public repository proof, not page-type classification. Page shape currently comes from the preset. Page types in kit/kinds/ are composition guidance, not rigid templates. profile is the GitHub user section.
The Astro build fetches public GitHub evidence and refuses a repository reporting itself as private. Network/API failure degrades the GitHub proof rather than requiring a backend. Release and commit endpoints are skipped when the page has disabled those capabilities.
The signal strip prioritizes useful positive evidence instead of forcing zero-value forks/watchers into fixed cards. Topics and implementation stack remain separate taxonomies. Activity copy describes the sampled recent commits and does not pretend to be a 52-week contribution history.
Reference corpus
A single production Astro build generates:
- the root Gvaste Pages landing;
- every
examples/<repo>/site.yamlunder/examples/<repo>/; - the examples index;
- every YAML case under
playground/cases/; - the playground shell;
404.html;- copied evidence assets beside their generated routes.
examples/catalog/ remains the all-section integration fixture. The wider examples/playground set is also the natural visual regression corpus across apps, CLIs, libraries, skills, desktop tools, games, dark/light themes, and responsive widths.
Hosting
The generated docs/ tree is published to GitHub Pages and Cloudflare.
GitHub Pages builds with GVASTE_ASTRO_BASE=/gh-pages-template so compiled assets resolve under the project path. Cloudflare uses / and maps example subdomains to docs/examples/<folder>. The worker keeps Astro's shared /_astro/* asset graph at the deployment root while rewriting project page/evidence paths.
A normal consumer repository does not need the template's Cloudflare worker or multi-subdomain host map.
Agents
The gvaste-pages skill under .agents/skills/gvaste-pages/ is the authoring workflow for agents. It keeps structural rendering separate from evidence judgment and includes dedicated references for YAML fields, public GitHub signals, and Astro drop-in setup. Proposed composition/profile/evidence rules are documented under docs/landing-system/ and should be treated as design guidance until their migration phases are implemented.