|  | 
|  | 1 | +// @ts-check | 
|  | 2 | +import { defineConfig } from 'astro/config'; | 
|  | 3 | +import starlight from '@astrojs/starlight'; | 
|  | 4 | +import sitemap from '@astrojs/sitemap'; | 
|  | 5 | +import tailwindcss from '@tailwindcss/vite'; | 
|  | 6 | + | 
|  | 7 | +export default defineConfig({ | 
|  | 8 | +  site: 'https://all-contributors.github.io', | 
|  | 9 | +  base: '', | 
|  | 10 | +  output: 'static', | 
|  | 11 | + | 
|  | 12 | +  redirects: { | 
|  | 13 | +      // Later we can put redirects here if needed | 
|  | 14 | +  }, | 
|  | 15 | + | 
|  | 16 | +  integrations: [ | 
|  | 17 | +      starlight({ | 
|  | 18 | +          customCss: [ | 
|  | 19 | +              './src/styles/global.css', | 
|  | 20 | +              './src/fonts/font-face.css', | 
|  | 21 | +              ], | 
|  | 22 | +          title: '', | 
|  | 23 | +                  logo: { | 
|  | 24 | +                      src: './src/assets/logo-full.svg', | 
|  | 25 | +                  }, | 
|  | 26 | +          favicon: '/icons/favicon-16x16.png', | 
|  | 27 | +          social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/all-contributors/all-contributors' }], | 
|  | 28 | +          sidebar: [ | 
|  | 29 | +              { | 
|  | 30 | +                  label: 'Specification', | 
|  | 31 | +                  items: [ | 
|  | 32 | +                      { label: 'spec overview', slug: 'overview' }, | 
|  | 33 | +                      { label: 'specification', slug: 'specification' }, | 
|  | 34 | +                      { label: 'emoji-key', slug: 'emoji-key' }, | 
|  | 35 | +                      { label: 'usage tips', slug: 'usage-tips' }, | 
|  | 36 | +                      { label: 'tooling', slug: 'tooling' } | 
|  | 37 | +                  ], | 
|  | 38 | +              }, | 
|  | 39 | +              { | 
|  | 40 | +                  label: '@all-contributors Bot 🤖', | 
|  | 41 | +                  items: [ | 
|  | 42 | +                      { label: 'bot overview', slug: 'bot/overview' }, | 
|  | 43 | +                      { label: 'installation', slug: 'bot/installation' }, | 
|  | 44 | +                      { label: 'usage', slug: 'bot/usage' }, | 
|  | 45 | +                      { label: 'configuration', slug: 'bot/configuration' }, | 
|  | 46 | +                      { label: 'faq', slug: 'bot/faq' } | 
|  | 47 | +                  ], | 
|  | 48 | +              }, | 
|  | 49 | +              { | 
|  | 50 | +                  label: 'CLI', | 
|  | 51 | +                  items: [ | 
|  | 52 | +                      { label: 'CLI overview', slug: 'cli/overview' }, | 
|  | 53 | +                      { label: 'installation', slug: 'cli/installation' }, | 
|  | 54 | +                      { label: 'usage', slug: 'cli/usage' }, | 
|  | 55 | +                      { label: 'configuration', slug: 'cli/configuration' } | 
|  | 56 | +                  ], | 
|  | 57 | +              }, | 
|  | 58 | +              { | 
|  | 59 | +                  label: 'Project', | 
|  | 60 | +                  items: [ | 
|  | 61 | +                      { label: 'contribute', slug: 'project/contribute' }, | 
|  | 62 | +                      { label: 'development', slug: 'project/development' }, | 
|  | 63 | +                      { label: 'code-of-conduct', slug: 'project/code-of-conduct' }, | 
|  | 64 | +                      { label: 'implementations', slug: 'project/implementations' }, | 
|  | 65 | +                  ], | 
|  | 66 | +              }, | 
|  | 67 | +          ], | 
|  | 68 | +          }), sitemap()], | 
|  | 69 | + | 
|  | 70 | +  vite: { | 
|  | 71 | +    plugins: [tailwindcss()], | 
|  | 72 | +    resolve: { | 
|  | 73 | +      alias: { | 
|  | 74 | +        '@assets': '/src/assets', | 
|  | 75 | +      }, | 
|  | 76 | +    }, | 
|  | 77 | +  }, | 
|  | 78 | +}); | 
0 commit comments