Source for docs.stackbilder.com — the source-of-truth documentation portal for the Stackbilt-dev ecosystem.
Covers every public and private repo in the org: platform workers, OSS libraries, agent infrastructure, developer tools, and standalone apps.
| Layer | Technology |
|---|---|
| Framework | Astro 7.0.3 (static output) |
| Styling | Tailwind CSS |
| Runtime | Cloudflare Workers (via Wrangler) |
| Governance | Charter CLI (@stackbilt/cli) + ADF (.ai/) |
| Pre-commit | pnpm build — build must pass before every commit |
pnpm install
pnpm dev # http://localhost:4321pnpm build # Astro static build → dist/
pnpm deploy # build + wrangler deploy + IndexNow ping
pnpm preview # wrangler dev against the built dist/Deployed to docs.stackbilder.com (canonical) and docs.stackbilt.dev (legacy redirect — remove after transition completes).
All documentation lives in src/content/docs/*.md. Each file requires this frontmatter:
---
title: "Page title"
description: "One-line description for SEO and Open Graph"
section: "platform" | "ecosystem" | "charter"
order: 10 # controls sidebar sort order
color: "#22d3ee" # accent color used in the UI
tag: "10" # zero-padded string version of order
lastVerified: "2026-06-28"
---Routes are dynamic — src/pages/[...slug].astro reads getCollection('docs') via getStaticPaths(). Adding an .md file here automatically creates its route at /{slug}.
- Create
src/content/docs/{slug}.mdwith valid frontmatter - Run
pnpm buildto verify it compiles clean (the pre-commit hook does this automatically) - Link to it from related pages and from the
ecosystem.mdAll Repositories table
Some pages are pulled from source repos rather than hand-authored here. The sync pipeline is defined in docs-manifest.json and executed by scripts/docs-sync.sh.
# Sync all sources, build, and deploy
GITHUB_TOKEN=ghp_... ./scripts/docs-sync.sh
# Dry run — shows what would change, no writes
GITHUB_TOKEN=ghp_... ./scripts/docs-sync.sh --dry-run
# Sync one source only
GITHUB_TOKEN=ghp_... ./scripts/docs-sync.sh --source charter
# Generate missing pages from source code via headless Claude
GITHUB_TOKEN=ghp_... ./scripts/docs-sync.sh --generatePages not in docs-manifest.json are hand-authored directly in this repo.
This repo is governed by Charter CLI. Pre-commit hooks enforce build validity; CI validates drift and ADF metric ceilings.
pnpm govern:validate # charter validate --ci
pnpm govern:drift # charter drift --ci
pnpm verify:adf # ADF metric ceiling checkADF context modules live in .ai/. See .ai/manifest.adf for module routing.
The sitemap at docs.stackbilder.com/sitemap-index.xml is generated at build time. Each page's <lastmod> is derived from the file's last git commit timestamp.