import { defineConfig } from 'astro/config' import starlight from '@astrojs/starlight' import sidebar from './src/sidebar.json' with { type: 'json' } // Nothing in this file names a document or a section. The sidebar is generated // from .loom/externals/.locks, so adopting anything and re-running // `npm run generate` is the whole of adding it — 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/' }, // Generated by scripts/generate.mjs from the locks. Adopting from a new // repository adds a section here with no edit to this file. sidebar, customCss: ['./src/styles/loom.css'], }), ], })