Files
core/website/astro.config.mjs
T
chrnx 489aa685bb docs: host the docs at green-tea.expressive-tea.io/docs
The site hangs off the expressive-tea.io cPanel as green-tea.expressive-tea.io.
A four-level docs.green-tea.expressive-tea.io subdomain reads badly and would
need its own AutoSSL cert (the *.expressive-tea.io wildcard stops one level
up). A /docs subfolder needs no extra host, DNS, or cert — it's a path — and
is what most projects do.

So the docs site now builds with base: '/docs' (its dist/ contents drop into
the subdomain's docs/ folder in cPanel), the 77 hard-coded content links are
prefixed, and the two hero actions Starlight doesn't rewrite are fixed by
hand. Verified: /docs/ serves, / 404s, no unprefixed internal href remains.
README points at the new docs URL.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-17 10:13:10 -05:00

63 lines
2.4 KiB
JavaScript

import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
// Docs site for @green-tea/core. Content lives in src/content/docs/**.
export default defineConfig({
site: 'https://green-tea.expressive-tea.io',
base: '/docs',
integrations: [
starlight({
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' },
favicon: '/favicon.svg',
customCss: ['./src/styles/brand.css'],
tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 3 },
sidebar: [
{
label: 'Start here',
items: [
{ label: 'Introduction', link: '/' },
{ label: 'Getting started', slug: 'getting-started' },
],
},
{
label: 'Concepts',
items: [
{ label: 'The dependency graph', slug: 'concepts/the-graph' },
{ label: 'The typed flow core', slug: 'concepts/flow' },
],
},
{
label: 'Guides',
items: [
{ label: 'The matcha CLI', slug: 'guides/cli' },
{ label: 'Routing', slug: 'guides/routing' },
{ label: 'Dependency injection', slug: 'guides/dependency-injection' },
{ label: 'Argument decorators', slug: 'guides/arguments' },
{ label: 'Validation', slug: 'guides/validation' },
{ label: 'Error handling', slug: 'guides/errors' },
{ label: 'Streaming & real-time', slug: 'guides/streaming' },
{ label: 'File uploads', slug: 'guides/uploads' },
{ label: 'HTML & views', slug: 'guides/html' },
{ label: 'Transport security', slug: 'guides/security' },
{ label: 'Plugins & observability', slug: 'guides/plugins' },
{ label: 'Graph introspection', slug: 'guides/introspection' },
{ label: 'OpenAPI', slug: 'guides/openapi' },
{ label: 'Runtimes', slug: 'guides/runtimes' },
{ label: 'Testing', slug: 'guides/testing' },
{ label: 'Mesh (alpha)', slug: 'guides/mesh', badge: { text: 'alpha', variant: 'caution' } },
],
},
{
label: 'Reference',
items: [
{ label: 'Decorators', slug: 'reference/decorators' },
{ label: 'createApp options', slug: 'reference/createapp' },
],
},
],
}),
],
});