// @ts-check import { defineConfig } from 'astro/config'; import starlight from '@astrojs/starlight'; import tailwindcss from '@tailwindcss/vite'; // https://astro.build/config export default defineConfig({ // TODO(Phase B/SEO): set `site` to the production URL once the domain is // known — enables the sitemap and canonical/OG URLs. integrations: [ starlight({ title: 'RDBMS Playground', tagline: 'Learn relational databases by doing.', // TODO(Phase B): point at the real repository once it moves to its // public home. Omitted for now rather than linking the wrong repo. // social: [{ icon: 'github', label: 'GitHub', href: '…' }], customCss: ['./src/styles/global.css'], // Pragmatic structure (ADR-0044 §7 / website/STYLE.md): Getting // started, Guides, Reference, Concepts. Autogenerated per directory; // in-section order is controlled by each page's `sidebar.order` // frontmatter. sidebar: [ { label: 'Getting started', items: [{ autogenerate: { directory: 'getting-started' } }] }, { label: 'Guides', items: [{ autogenerate: { directory: 'guides' } }] }, { label: 'Reference', items: [{ autogenerate: { directory: 'reference' } }] }, { label: 'Concepts', items: [{ autogenerate: { directory: 'concepts' } }] }, ], }), ], vite: { plugins: [tailwindcss()], }, });