import { defineConfig } from 'astro/config' import starlight from '@astrojs/starlight' // The sidebar is autogenerated from directories, so adopting a document and // re-running `npm run generate` is the whole of adding a page. Nothing here // names a document; a config that listed them would be a second place to // update and would go stale silently. export default defineConfig({ site: 'https://loom.hypertheory-labs.dev', srcDir: './src', integrations: [ starlight({ title: 'loom', description: 'Conventions for holding what a repository knows, so that somebody arriving — person or agent — can find it.', social: [ { icon: 'seti:git', label: 'Source', href: 'https://git.hypertheory-labs.dev/loom', }, ], editLink: { baseUrl: 'https://git.hypertheory-labs.dev/loom/docs/_edit/main/' }, sidebar: [ { label: 'Start here', link: '/' }, { label: 'bedrock', autogenerate: { directory: 'bedrock' } }, { label: 'externals', autogenerate: { directory: 'externals' } }, { label: 'annotating', autogenerate: { directory: 'annotating' } }, { label: 'cart', autogenerate: { directory: 'cart' } }, ], customCss: ['./src/styles/loom.css'], }), ], })