|
1 | 1 | // @ts-check |
2 | | -import { defineConfig } from 'astro/config'; |
3 | | -import starlight from '@astrojs/starlight'; |
4 | | -import tailwindcss from '@tailwindcss/vite'; |
| 2 | +import { defineConfig } from "astro/config"; |
| 3 | +import starlight from "@astrojs/starlight"; |
| 4 | +import tailwindcss from "@tailwindcss/vite"; |
5 | 5 |
|
6 | 6 | // https://astro.build/config |
7 | 7 | export default defineConfig({ |
8 | | - integrations: [ |
9 | | - starlight({ |
10 | | - title: 'Docs with Tailwind', |
11 | | - social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/withastro/starlight' }], |
12 | | - sidebar: [ |
13 | | - { |
14 | | - label: 'Guides', |
15 | | - items: [ |
16 | | - // Each item here is one entry in the navigation menu. |
17 | | - { label: 'Example Guide', slug: 'guides/example' }, |
18 | | - ], |
19 | | - }, |
20 | | - { |
21 | | - label: 'Reference', |
22 | | - autogenerate: { directory: 'reference' }, |
23 | | - }, |
24 | | - ], |
25 | | - customCss: ['./src/styles/global.css'], |
26 | | - }), |
27 | | - ], |
28 | | - vite: { |
29 | | - plugins: [tailwindcss()], |
30 | | - }, |
| 8 | + srcDir: ".", |
| 9 | + integrations: [ |
| 10 | + starlight({ |
| 11 | + title: "Docs with Tailwind", |
| 12 | + social: [ |
| 13 | + { |
| 14 | + icon: "github", |
| 15 | + label: "GitHub", |
| 16 | + href: "https://github.com/withastro/starlight", |
| 17 | + }, |
| 18 | + ], |
| 19 | + sidebar: [ |
| 20 | + { |
| 21 | + label: "Guides", |
| 22 | + items: [ |
| 23 | + // Each item here is one entry in the navigation menu. |
| 24 | + { label: "Example Guide", slug: "guides/example" }, |
| 25 | + ], |
| 26 | + }, |
| 27 | + { |
| 28 | + label: "Reference", |
| 29 | + autogenerate: { directory: "reference" }, |
| 30 | + }, |
| 31 | + ], |
| 32 | + customCss: ["./styles/global.css"], |
| 33 | + }), |
| 34 | + ], |
| 35 | + vite: { |
| 36 | + plugins: [tailwindcss()], |
| 37 | + }, |
31 | 38 | }); |
0 commit comments