|
1 | 1 | // @ts-check |
2 | | -import { defineConfig } from 'astro/config'; |
3 | | -import starlight from '@astrojs/starlight'; |
4 | | -import starlightThemeGalaxy from 'starlight-theme-galaxy'; |
5 | | -import starlightSidebarTopics from 'starlight-sidebar-topics'; |
6 | | -import starlightLinksValidator from 'starlight-links-validator'; |
| 2 | +import { defineConfig } from "astro/config"; |
| 3 | +import starlight from "@astrojs/starlight"; |
| 4 | +import starlightThemeGalaxy from "starlight-theme-galaxy"; |
| 5 | +import starlightSidebarTopics from "starlight-sidebar-topics"; |
| 6 | +import starlightLinksValidator from "starlight-links-validator"; |
7 | 7 |
|
8 | 8 | // https://astro.build/config |
9 | 9 | export default defineConfig({ |
10 | | - site: 'https://beta.nextftc.dev', |
11 | | - integrations: [ |
12 | | - starlight({ |
13 | | - title: 'NextFTC', |
14 | | - logo: { |
15 | | - light: './src/assets/nextftc-banner-light.png', |
16 | | - dark: './src/assets/nextftc-banner-dark.png', |
17 | | - replacesTitle: true, |
| 10 | + site: "https://beta.nextftc.dev", |
| 11 | + integrations: [ |
| 12 | + starlight({ |
| 13 | + title: "NextFTC", |
| 14 | + logo: { |
| 15 | + light: "./src/assets/nextftc-banner-light.png", |
| 16 | + dark: "./src/assets/nextftc-banner-dark.png", |
| 17 | + replacesTitle: true, |
| 18 | + }, |
| 19 | + favicon: "/favicon.svg", |
| 20 | + customCss: ["./src/styles/custom.css"], |
| 21 | + social: [ |
| 22 | + { |
| 23 | + icon: "github", |
| 24 | + label: "GitHub", |
| 25 | + href: "https://github.com/NextFTC/NextFTCSuite", |
| 26 | + }, |
| 27 | + { |
| 28 | + icon: "discord", |
| 29 | + label: "Discord", |
| 30 | + href: "https://nextftc.dev/discord", |
| 31 | + }, |
| 32 | + ], |
| 33 | + plugins: [ |
| 34 | + starlightSidebarTopics([ |
| 35 | + { |
| 36 | + label: "Introduction", |
| 37 | + link: "/introduction/", |
| 38 | + icon: "rocket", |
| 39 | + items: [{ autogenerate: { directory: "introduction" } }], |
18 | 40 | }, |
19 | | - favicon: '/favicon.svg', |
20 | | - customCss: ['./src/styles/custom.css'], |
21 | | - social: [ |
22 | | - { icon: 'github', label: 'GitHub', href: 'https://github.com/NextFTC/NextFTCSuite' }, |
23 | | - { icon: 'discord', label: 'Discord', href: 'https://nextftc.dev/discord' }, |
24 | | - ], |
25 | | - plugins: [ |
26 | | - starlightSidebarTopics([ |
27 | | - { |
28 | | - label: 'Introduction', |
29 | | - link: '/introduction/', |
30 | | - icon: 'rocket', |
31 | | - items: [{ autogenerate: { directory: 'introduction' } }], |
32 | | - }, |
33 | | - { |
34 | | - label: 'Your First Robot', |
35 | | - link: '/your-first-robot/', |
36 | | - icon: 'star', |
37 | | - items: [{ autogenerate: { directory: 'your-first-robot' } }], |
38 | | - }, |
39 | | - { |
40 | | - label: 'Robot Module', |
41 | | - link: '/robot/', |
42 | | - icon: 'puzzle', |
43 | | - items: [{ autogenerate: { directory: 'robot' } }], |
44 | | - }, |
45 | | - { |
46 | | - label: 'Hardware Module', |
47 | | - link: '/hardware/', |
48 | | - icon: 'setting', |
49 | | - items: [ |
50 | | - { |
51 | | - label: 'Actuators', |
52 | | - items: [{ autogenerate: { directory: 'hardware/actuators' } }], |
53 | | - }, |
54 | | - { |
55 | | - label: 'Sensors', |
56 | | - items: [{ autogenerate: { directory: 'hardware/sensors' } }], |
57 | | - }, |
58 | | - { |
59 | | - label: 'Miscellaneous', |
60 | | - items: [{ autogenerate: { directory: 'hardware/miscellaneous' } }], |
61 | | - }, |
62 | | - ], |
63 | | - }, |
64 | | - { |
65 | | - label: 'Control Module', |
66 | | - link: '/control/', |
67 | | - icon: 'document', |
68 | | - items: [{ autogenerate: { directory: 'control' } }], |
69 | | - }, |
70 | | - ]), |
71 | | - starlightThemeGalaxy(), |
72 | | - starlightLinksValidator(), |
73 | | - ] |
74 | | - }), |
75 | | - ], |
| 41 | + { |
| 42 | + label: "Your First Robot", |
| 43 | + link: "/your-first-robot/", |
| 44 | + icon: "star", |
| 45 | + items: [{ autogenerate: { directory: "your-first-robot" } }], |
| 46 | + }, |
| 47 | + { |
| 48 | + label: "Robot Module", |
| 49 | + link: "/robot/", |
| 50 | + icon: "puzzle", |
| 51 | + items: [{ autogenerate: { directory: "robot" } }], |
| 52 | + }, |
| 53 | + { |
| 54 | + label: "Hardware Module", |
| 55 | + link: "/hardware/", |
| 56 | + icon: "setting", |
| 57 | + items: [ |
| 58 | + { |
| 59 | + label: "Actuators", |
| 60 | + items: [{ autogenerate: { directory: "hardware/actuators" } }], |
| 61 | + }, |
| 62 | + { |
| 63 | + label: "Sensors", |
| 64 | + items: [{ autogenerate: { directory: "hardware/sensors" } }], |
| 65 | + }, |
| 66 | + { |
| 67 | + label: "Miscellaneous", |
| 68 | + items: [ |
| 69 | + { autogenerate: { directory: "hardware/miscellaneous" } }, |
| 70 | + ], |
| 71 | + }, |
| 72 | + ], |
| 73 | + }, |
| 74 | + { |
| 75 | + label: "Control Module", |
| 76 | + link: "/control/", |
| 77 | + icon: "document", |
| 78 | + items: [{ autogenerate: { directory: "control" } }], |
| 79 | + }, |
| 80 | + ]), |
| 81 | + starlightThemeGalaxy(), |
| 82 | + starlightLinksValidator(), |
| 83 | + ], |
| 84 | + }), |
| 85 | + ], |
76 | 86 | }); |
0 commit comments