|
1 |
| -import { defineConfig } from "astro/config"; |
2 | 1 | import starlight from "@astrojs/starlight";
|
| 2 | +import { defineConfig } from "astro/config"; |
3 | 3 |
|
4 | 4 | import tailwind from "@astrojs/tailwind";
|
5 | 5 |
|
6 | 6 | // https://astro.build/config
|
7 | 7 | export default defineConfig({
|
8 |
| - site: "https://docs.openipc.org", |
9 |
| - base: "/", |
10 |
| - integrations: [ |
11 |
| - starlight({ |
12 |
| - title: "Documentation", |
13 |
| - customCss: ["./src/tailwind.css"], |
14 |
| - social: { |
15 |
| - github: "https://github.com/OpenIPC", |
16 |
| - }, |
17 |
| - logo: { |
18 |
| - light: "./src/assets/logo/OpenIPC__OPENIPC_logo_vertical.svg", |
19 |
| - dark: "./src/assets/logo/OpenIPC__OPENIPC_logo_vertical_white.svg", |
20 |
| - }, |
21 |
| - editLink: { |
22 |
| - baseUrl: "https://github.com/OpenIPC/docs/edit/main/", |
23 |
| - }, |
24 |
| - components: { |
25 |
| - // Relative path to the custom component. |
26 |
| - Head: "./src/components/Head.astro", |
27 |
| - }, |
28 |
| - sidebar: [ |
29 |
| - { |
30 |
| - label: "Getting Started", |
31 |
| - items: [ |
32 |
| - { |
33 |
| - label: "About the Project", |
34 |
| - link: "/getting-started/introduction/", |
35 |
| - }, |
36 |
| - { |
37 |
| - label: "Quick Start", |
38 |
| - link: "/getting-started/quick-start/", |
39 |
| - badge: { text: "WIP", variant: "caution" }, |
40 |
| - }, |
41 |
| - { |
42 |
| - label: "Roadmap", |
43 |
| - link: "/getting-started/roadmap/", |
44 |
| - }, |
45 |
| - ], |
46 |
| - }, |
47 |
| - { |
48 |
| - label: "Use Cases", |
49 |
| - items: [ |
50 |
| - { |
51 |
| - label: "FPV (First Person View)", |
52 |
| - autogenerate: { |
53 |
| - directory: "/use-cases/fpv", |
54 |
| - }, |
55 |
| - badge: { text: "WIP", variant: "caution" }, |
56 |
| - }, |
57 |
| - { |
58 |
| - label: "Home Automation", |
59 |
| - autogenerate: { |
60 |
| - directory: "/use-cases/home-automation", |
61 |
| - }, |
62 |
| - badge: { text: "WIP", variant: "caution" }, |
63 |
| - }, |
64 |
| - { |
65 |
| - label: "Video Surveillance", |
66 |
| - autogenerate: { |
67 |
| - directory: "/use-cases/video-surveillance", |
68 |
| - }, |
69 |
| - badge: { text: "WIP", variant: "caution" }, |
70 |
| - }, |
71 |
| - ], |
72 |
| - }, |
73 |
| - { |
74 |
| - label: "Hardware", |
75 |
| - items: [ |
76 |
| - { |
77 |
| - label: "Supported Hardware", |
78 |
| - link: "/hardware/supported-devices/", |
79 |
| - badge: { text: "WIP", variant: "caution" }, |
80 |
| - }, |
81 |
| - { |
82 |
| - label: "Flashing Firmware", |
83 |
| - link: "/hardware/flashing-firmware/", |
84 |
| - badge: { text: "WIP", variant: "caution" }, |
85 |
| - }, |
86 |
| - { |
87 |
| - label: "Troubleshooting Guide", |
88 |
| - link: "/hardware/troubleshooting/", |
89 |
| - badge: { text: "WIP", variant: "caution" }, |
90 |
| - }, |
91 |
| - ], |
92 |
| - }, |
93 |
| - { |
94 |
| - label: "Software", |
95 |
| - items: [ |
96 |
| - { |
97 |
| - label: "Software Overview", |
98 |
| - link: "/software/software-overview/", |
99 |
| - badge: { text: "WIP", variant: "caution" }, |
100 |
| - }, |
101 |
| - { |
102 |
| - label: "Configuration Details", |
103 |
| - link: "/software/configuration-details/", |
104 |
| - badge: { text: "WIP", variant: "caution" }, |
105 |
| - }, |
106 |
| - { |
107 |
| - label: "Firmware Updates", |
108 |
| - link: "/software/firmware-updates/", |
109 |
| - badge: { text: "WIP", variant: "caution" }, |
110 |
| - }, |
111 |
| - ], |
112 |
| - }, |
113 |
| - { |
114 |
| - label: "Development", |
115 |
| - items: [ |
116 |
| - { |
117 |
| - label: "Contribution Guidelines", |
118 |
| - link: "/development/contribution-guidelines/", |
119 |
| - badge: { text: "WIP", variant: "caution" }, |
120 |
| - }, |
121 |
| - { |
122 |
| - label: "Projects & Applications", |
123 |
| - link: "/development/projects-applications/", |
124 |
| - badge: { text: "WIP", variant: "caution" }, |
125 |
| - }, |
126 |
| - ], |
127 |
| - }, |
128 |
| - { |
129 |
| - label: "Resources", |
130 |
| - items: [ |
131 |
| - { |
132 |
| - label: "Frequently Asked Questions", |
133 |
| - link: "/resources/faq/", |
134 |
| - badge: { text: "WIP", variant: "caution" }, |
135 |
| - }, |
136 |
| - { |
137 |
| - label: "Useful Links", |
138 |
| - link: "/resources/useful-links/", |
139 |
| - badge: { text: "WIP", variant: "caution" }, |
140 |
| - }, |
141 |
| - ], |
142 |
| - }, |
143 |
| - { |
144 |
| - label: "Reference", |
145 |
| - autogenerate: { |
146 |
| - directory: "reference", |
147 |
| - }, |
148 |
| - badge: { text: "WIP", variant: "caution" }, |
149 |
| - }, |
150 |
| - { |
151 |
| - label: "Team", |
152 |
| - link: "/team/", |
153 |
| - }, |
154 |
| - ], |
155 |
| - }), |
156 |
| - tailwind({ applyBaseStyles: false }), |
157 |
| - ], |
| 8 | + site: "https://docs.openipc.org", |
| 9 | + base: "/", |
| 10 | + integrations: [ |
| 11 | + starlight({ |
| 12 | + title: "Documentation", |
| 13 | + customCss: ["./src/tailwind.css"], |
| 14 | + social: { |
| 15 | + github: "https://github.com/OpenIPC", |
| 16 | + }, |
| 17 | + logo: { |
| 18 | + light: "./src/assets/logo/OpenIPC__OPENIPC_logo_vertical.svg", |
| 19 | + dark: "./src/assets/logo/OpenIPC__OPENIPC_logo_vertical_white.svg", |
| 20 | + }, |
| 21 | + editLink: { |
| 22 | + baseUrl: "https://github.com/OpenIPC/docs/edit/main/", |
| 23 | + }, |
| 24 | + components: { |
| 25 | + // Relative path to the custom component. |
| 26 | + Head: "./src/components/Head.astro", |
| 27 | + }, |
| 28 | + sidebar: [ |
| 29 | + { |
| 30 | + label: "Getting Started", |
| 31 | + items: [ |
| 32 | + { |
| 33 | + label: "About the Project", |
| 34 | + link: "/getting-started/introduction/", |
| 35 | + }, |
| 36 | + { |
| 37 | + label: "Quick Start", |
| 38 | + link: "/getting-started/quick-start/", |
| 39 | + badge: { text: "WIP", variant: "caution" }, |
| 40 | + }, |
| 41 | + { |
| 42 | + label: "Roadmap", |
| 43 | + link: "/getting-started/roadmap/", |
| 44 | + }, |
| 45 | + ], |
| 46 | + }, |
| 47 | + { |
| 48 | + label: "Use Cases", |
| 49 | + items: [ |
| 50 | + { |
| 51 | + label: "FPV (First Person View)", |
| 52 | + autogenerate: { |
| 53 | + directory: "/use-cases/fpv", |
| 54 | + }, |
| 55 | + badge: { text: "WIP", variant: "caution" }, |
| 56 | + }, |
| 57 | + { |
| 58 | + label: "Home Automation", |
| 59 | + autogenerate: { |
| 60 | + directory: "/use-cases/home-automation", |
| 61 | + }, |
| 62 | + badge: { text: "WIP", variant: "caution" }, |
| 63 | + }, |
| 64 | + { |
| 65 | + label: "Video Surveillance", |
| 66 | + autogenerate: { |
| 67 | + directory: "/use-cases/video-surveillance", |
| 68 | + }, |
| 69 | + badge: { text: "WIP", variant: "caution" }, |
| 70 | + }, |
| 71 | + ], |
| 72 | + }, |
| 73 | + { |
| 74 | + label: "Hardware", |
| 75 | + badge: { text: "WIP", variant: "caution" }, |
| 76 | + autogenerate: { |
| 77 | + directory: "/hardware", |
| 78 | + }, |
| 79 | + }, |
| 80 | + { |
| 81 | + label: "Software", |
| 82 | + items: [ |
| 83 | + { |
| 84 | + label: "Software Overview", |
| 85 | + link: "/software/software-overview/", |
| 86 | + badge: { text: "WIP", variant: "caution" }, |
| 87 | + }, |
| 88 | + { |
| 89 | + label: "Configuration Details", |
| 90 | + link: "/software/configuration-details/", |
| 91 | + badge: { text: "WIP", variant: "caution" }, |
| 92 | + }, |
| 93 | + { |
| 94 | + label: "Firmware Updates", |
| 95 | + link: "/software/firmware-updates/", |
| 96 | + badge: { text: "WIP", variant: "caution" }, |
| 97 | + }, |
| 98 | + ], |
| 99 | + }, |
| 100 | + { |
| 101 | + label: "Development", |
| 102 | + items: [ |
| 103 | + { |
| 104 | + label: "Contribution Guidelines", |
| 105 | + link: "/development/contribution-guidelines/", |
| 106 | + badge: { text: "WIP", variant: "caution" }, |
| 107 | + }, |
| 108 | + { |
| 109 | + label: "Projects & Applications", |
| 110 | + link: "/development/projects-applications/", |
| 111 | + badge: { text: "WIP", variant: "caution" }, |
| 112 | + }, |
| 113 | + ], |
| 114 | + }, |
| 115 | + { |
| 116 | + label: "Resources", |
| 117 | + items: [ |
| 118 | + { |
| 119 | + label: "Frequently Asked Questions", |
| 120 | + link: "/resources/faq/", |
| 121 | + badge: { text: "WIP", variant: "caution" }, |
| 122 | + }, |
| 123 | + { |
| 124 | + label: "Useful Links", |
| 125 | + link: "/resources/useful-links/", |
| 126 | + badge: { text: "WIP", variant: "caution" }, |
| 127 | + }, |
| 128 | + ], |
| 129 | + }, |
| 130 | + { |
| 131 | + label: "Reference", |
| 132 | + autogenerate: { |
| 133 | + directory: "reference", |
| 134 | + }, |
| 135 | + badge: { text: "WIP", variant: "caution" }, |
| 136 | + }, |
| 137 | + { |
| 138 | + label: "Team", |
| 139 | + link: "/team/", |
| 140 | + }, |
| 141 | + ], |
| 142 | + }), |
| 143 | + tailwind({ applyBaseStyles: false }), |
| 144 | + ], |
158 | 145 | });
|
0 commit comments