|
| 1 | +// @ts-check |
| 2 | +import { defineConfig } from 'astro/config'; |
| 3 | +import starlight from '@astrojs/starlight'; |
| 4 | +import starlightLinksValidator from 'starlight-links-validator' |
| 5 | +import tailwind from '@astrojs/tailwind'; |
| 6 | + |
| 7 | +// https://astro.build/config |
| 8 | +export default defineConfig({ |
| 9 | + site: 'https://opensource.axo.dev/dist', |
| 10 | + integrations: [starlight({ |
| 11 | + title: 'dist', |
| 12 | + logo: { |
| 13 | + light: './src/assets/package-light.svg', |
| 14 | + dark: './src/assets/package-dark.svg', |
| 15 | + }, |
| 16 | + plugins: [starlightLinksValidator()], |
| 17 | + customCss: ['./src/styles/custom.css', './src/styles/fonts.css', './src/styles/tailwind.css'], |
| 18 | + favicon: 'public/favicon.svg', |
| 19 | + head: [ |
| 20 | + // Add ICO favicon fallback for Safari. |
| 21 | + { |
| 22 | + tag: 'link', |
| 23 | + attrs: { |
| 24 | + rel: 'icon', |
| 25 | + href: '/public/favicon.ico', |
| 26 | + sizes: '32x32', |
| 27 | + }, |
| 28 | + }, |
| 29 | + ], |
| 30 | + social: { |
| 31 | + github: 'https://github.com/axodotdev/cargo-dist', |
| 32 | + twitter: 'https://twitter.com/axodotdev', |
| 33 | + mastodon: 'https://mastodon.social/axodotdev', |
| 34 | + }, |
| 35 | + components: { |
| 36 | + // Override the default `SocialIcons` component. |
| 37 | + SocialIcons: './src/components/overrides/SocialIcons.astro', |
| 38 | + }, |
| 39 | + sidebar: [ |
| 40 | + { |
| 41 | + label: 'Start here', |
| 42 | + items: [ |
| 43 | + { label: 'Installation', slug: 'start/install' }, |
| 44 | + { label: 'Updating', slug: 'start/update' }, |
| 45 | + { label: 'Project structure', slug: 'start/structure' }, |
| 46 | + { label: 'Configuration', slug: 'start/config' } |
| 47 | + ] |
| 48 | + }, |
| 49 | + { |
| 50 | + label: 'Reference', |
| 51 | + autogenerate: { directory: 'reference' }, |
| 52 | + }, |
| 53 | + ], |
| 54 | + }), tailwind({ |
| 55 | + // Disable the default base styles: |
| 56 | + applyBaseStyles: false, |
| 57 | + }) |
| 58 | + ], |
| 59 | +}); |
0 commit comments