|
| 1 | +import sitemap from '@astrojs/sitemap'; |
| 2 | +import starlight from '@astrojs/starlight'; |
| 3 | +import icon from 'astro-icon'; |
| 4 | +import { defineConfig } from 'astro/config'; |
| 5 | + |
| 6 | +const repository = 'https://github.com/anipotts/coding-agent-tips'; |
| 7 | + |
| 8 | +export default defineConfig({ |
| 9 | + site: 'https://agents.anipotts.com', |
| 10 | + output: 'static', |
| 11 | + integrations: [ |
| 12 | + icon({ |
| 13 | + include: { |
| 14 | + ph: ['app-window', 'terminal-window', 'brain', 'git-branch', 'arrow-right', 'arrow-up-right'], |
| 15 | + }, |
| 16 | + }), |
| 17 | + sitemap(), |
| 18 | + starlight({ |
| 19 | + title: 'coding agent tips', |
| 20 | + description: |
| 21 | + 'evidence-backed guidance for coding agents in production software, from individual projects to startups and big tech.', |
| 22 | + customCss: ['./src/styles/global.css'], |
| 23 | + components: { |
| 24 | + Header: './src/components/StarlightHeader.astro', |
| 25 | + PageSidebar: './src/components/StarlightPageSidebar.astro', |
| 26 | + PageTitle: './src/components/StarlightPageTitle.astro', |
| 27 | + }, |
| 28 | + social: [{ icon: 'github', label: 'GitHub', href: repository }], |
| 29 | + editLink: { baseUrl: `${repository}/edit/main/` }, |
| 30 | + lastUpdated: false, |
| 31 | + sidebar: [ |
| 32 | + { |
| 33 | + label: 'guides', |
| 34 | + items: [ |
| 35 | + { label: 'all guides', slug: 'guides' }, |
| 36 | + { label: 'codex', slug: 'guides/codex' }, |
| 37 | + { label: 'claude code', slug: 'guides/claude-code' }, |
| 38 | + { label: 'operating system', slug: 'guides/operating-system' }, |
| 39 | + ], |
| 40 | + }, |
| 41 | + { |
| 42 | + label: 'market', |
| 43 | + items: [ |
| 44 | + { label: 'market map', slug: 'market' }, |
| 45 | + { label: 'hardware', slug: 'market/hardware' }, |
| 46 | + ], |
| 47 | + }, |
| 48 | + { |
| 49 | + label: 'field work', |
| 50 | + items: [ |
| 51 | + { label: 'field lab', slug: 'field-lab' }, |
| 52 | + { label: 'method', slug: 'method' }, |
| 53 | + { label: 'changes', slug: 'changes' }, |
| 54 | + { label: 'legacy', slug: 'legacy' }, |
| 55 | + ], |
| 56 | + }, |
| 57 | + ], |
| 58 | + }), |
| 59 | + ], |
| 60 | +}); |
0 commit comments