Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightLlmsTxt from 'starlight-llms-txt';

/**
* The `@green-tea/core` release these pages describe.
Expand Down Expand Up @@ -32,6 +33,20 @@ export default defineConfig({
// Let the content-backed 404.md own /404; otherwise Astro also injects a conflicting route.
disable404Route: true,

// /docs/llms.txt, /docs/llms-full.txt and /docs/llms-small.txt: the docs in the shape LLM
// agents read. green-tea is new, so an agent has no training data to fall back on; these, and
// the llms.txt that ships inside @green-tea/core, are what it learns the framework from.
plugins: [
starlightLlmsTxt({
projectName: 'green-tea',
description:
'A TypeScript HTTP framework for Node 22+, Deno, Bun and Cloudflare Workers where the request pipeline is a dependency graph: providers and steps declare what they provide and need, handlers declare what they need in their signature, and the order is derived and validated at boot. It is not Express: there is no middleware chain, no next(), and no req/res mutation.',
promote: ['getting-started', 'concepts/**', 'stability'],
demote: ['contributors', 'whats-new', 'guides/mesh'],
exclude: ['404'],
}),
],

title: 'Green Tea.',
description: 'A zen, opinionated, type-safe framework — your API is a graph, not a chain.',
logo: { src: './src/assets/logo.svg', alt: 'Green Tea' },
Expand Down
Loading
Loading