|
1 |
| -import { defineConfig } from "astro/config"; |
2 |
| -import starlight from "@astrojs/starlight"; |
3 |
| -import tailwind from "@astrojs/tailwind"; |
| 1 | +import { defineConfig } from 'astro/config' |
| 2 | +import starlight from '@astrojs/starlight' |
| 3 | +import tailwind from '@astrojs/tailwind' |
4 | 4 |
|
5 | 5 | export default defineConfig({
|
6 |
| - site: "https://glandjs.github.io", |
7 |
| - base: "/", |
| 6 | + site: 'https://glandjs.github.io', |
| 7 | + base: '/', |
8 | 8 | integrations: [
|
9 | 9 | tailwind({
|
10 |
| - applyBaseStyles: false |
| 10 | + applyBaseStyles: false, |
11 | 11 | }),
|
12 | 12 | starlight({
|
13 |
| - title: "Gland", |
| 13 | + title: 'Gland', |
14 | 14 | logo: {
|
15 |
| - src: "./src/assets/logo.svg", |
16 |
| - alt: "Gland Documentation" |
| 15 | + src: './src/assets/logo.svg', |
| 16 | + alt: 'Gland Documentation', |
17 | 17 | },
|
18 | 18 | social: {
|
19 |
| - github: "https://github.com/glandjs/docs", |
20 |
| - discord: "https://discord.gg/glandjs", |
21 |
| - npm: "https://www.npmjs.com/package/@glandjs/core" |
| 19 | + github: 'https://github.com/glandjs/docs', |
| 20 | + discord: 'https://discord.gg/glandjs', |
| 21 | + npm: 'https://www.npmjs.com/package/@glandjs/core', |
22 | 22 | },
|
23 | 23 | expressiveCode: {
|
24 |
| - themes: ["github-dark-default"], |
| 24 | + themes: ['github-dark-default'], |
25 | 25 | styleOverrides: {
|
26 |
| - borderRadius: "0.5rem" |
27 |
| - } |
| 26 | + borderRadius: '0.5rem', |
| 27 | + }, |
28 | 28 | },
|
29 |
| - customCss: ["@styles/tailwind.css"], |
| 29 | + customCss: ['@styles/tailwind.css'], |
30 | 30 | components: {
|
31 |
| - Header: "@components/Header.astro", |
32 |
| - ContentPanel: "@components/ContentPanel.astro", |
33 |
| - PageTitle: "@components/PageTitle.astro" |
| 31 | + Header: '@components/Header.astro', |
| 32 | + ContentPanel: '@components/ContentPanel.astro', |
| 33 | + PageTitle: '@components/PageTitle.astro', |
34 | 34 | },
|
35 | 35 | head: [
|
36 | 36 | {
|
37 |
| - tag: "link", |
| 37 | + tag: 'link', |
38 | 38 | attrs: {
|
39 |
| - rel: "preconnect", |
40 |
| - href: "https://fonts.googleapis.com" |
41 |
| - } |
| 39 | + rel: 'preconnect', |
| 40 | + href: 'https://fonts.googleapis.com', |
| 41 | + }, |
42 | 42 | },
|
43 | 43 | {
|
44 |
| - tag: "link", |
| 44 | + tag: 'link', |
45 | 45 | attrs: {
|
46 |
| - rel: "preconnect", |
47 |
| - href: "https://fonts.gstatic.com", |
48 |
| - crossorigin: "anonymous" |
49 |
| - } |
| 46 | + rel: 'preconnect', |
| 47 | + href: 'https://fonts.gstatic.com', |
| 48 | + crossorigin: 'anonymous', |
| 49 | + }, |
50 | 50 | },
|
51 | 51 | {
|
52 |
| - tag: "link", |
| 52 | + tag: 'link', |
53 | 53 | attrs: {
|
54 |
| - rel: "stylesheet", |
55 |
| - href: "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" |
56 |
| - } |
| 54 | + rel: 'stylesheet', |
| 55 | + href: 'https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap', |
| 56 | + }, |
57 | 57 | },
|
58 | 58 | {
|
59 |
| - tag: "link", |
| 59 | + tag: 'link', |
60 | 60 | attrs: {
|
61 |
| - rel: "stylesheet", |
62 |
| - href: "https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap" |
63 |
| - } |
64 |
| - } |
| 61 | + rel: 'stylesheet', |
| 62 | + href: 'https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap', |
| 63 | + }, |
| 64 | + }, |
65 | 65 | ],
|
66 | 66 | sidebar: [
|
67 | 67 | {
|
68 |
| - label: "Introduction", |
| 68 | + label: 'Packages', |
| 69 | + collapsed: false, |
| 70 | + items: [ |
| 71 | + { |
| 72 | + label: 'Emitter', |
| 73 | + link: '/packages/emitter', |
| 74 | + badge: 'New', |
| 75 | + }, |
| 76 | + ], |
| 77 | + }, |
| 78 | + { |
| 79 | + label: 'Introduction', |
69 | 80 | collapsed: false,
|
70 | 81 | items: [
|
71 | 82 | {
|
72 |
| - label: "Getting Started", |
73 |
| - link: "/getting-started", |
74 |
| - badge: "New" |
| 83 | + label: 'Getting Started', |
| 84 | + link: '/getting-started', |
| 85 | + badge: 'New', |
75 | 86 | },
|
76 | 87 | {
|
77 |
| - label: "Installation", |
78 |
| - link: "/installation" |
| 88 | + label: 'Installation', |
| 89 | + link: '/installation', |
79 | 90 | },
|
80 | 91 | {
|
81 |
| - label: "Quickstart", |
82 |
| - link: "/quickstart" |
83 |
| - } |
84 |
| - ] |
| 92 | + label: 'Quickstart', |
| 93 | + link: '/quickstart', |
| 94 | + }, |
| 95 | + ], |
85 | 96 | },
|
86 | 97 | {
|
87 |
| - label: "Core Concepts", |
| 98 | + label: 'Core Concepts', |
88 | 99 | collapsed: false,
|
89 | 100 | items: [
|
90 | 101 | {
|
91 |
| - label: "Event-Driven Architecture", |
92 |
| - link: "/concepts/event-driven" |
| 102 | + label: 'Event-Driven Architecture', |
| 103 | + link: '/concepts/event-driven', |
93 | 104 | },
|
94 | 105 | {
|
95 |
| - label: "Channels", |
96 |
| - link: "/concepts/channels" |
| 106 | + label: 'Channels', |
| 107 | + link: '/concepts/channels', |
97 | 108 | },
|
98 | 109 | {
|
99 |
| - label: "Controllers", |
100 |
| - link: "/concepts/controllers" |
| 110 | + label: 'Controllers', |
| 111 | + link: '/concepts/controllers', |
101 | 112 | },
|
102 | 113 | {
|
103 |
| - label: "Modules", |
104 |
| - link: "/concepts/modules" |
105 |
| - } |
106 |
| - ] |
| 114 | + label: 'Modules', |
| 115 | + link: '/concepts/modules', |
| 116 | + }, |
| 117 | + ], |
107 | 118 | },
|
108 | 119 | {
|
109 |
| - label: "Guides", |
| 120 | + label: 'Guides', |
110 | 121 | collapsed: true,
|
111 | 122 | items: [
|
112 | 123 | {
|
113 |
| - label: "Basic Usage", |
114 |
| - link: "/guides/basic-usage" |
| 124 | + label: 'Basic Usage', |
| 125 | + link: '/guides/basic-usage', |
115 | 126 | },
|
116 | 127 | {
|
117 |
| - label: "Dependency Injection", |
118 |
| - link: "/guides/dependency-injection" |
| 128 | + label: 'Dependency Injection', |
| 129 | + link: '/guides/dependency-injection', |
119 | 130 | },
|
120 | 131 | {
|
121 |
| - label: "Advanced Features", |
122 |
| - link: "/guides/advanced-features" |
| 132 | + label: 'Advanced Features', |
| 133 | + link: '/guides/advanced-features', |
123 | 134 | },
|
124 | 135 | {
|
125 |
| - label: "Best Practices", |
126 |
| - link: "/guides/best-practices" |
127 |
| - } |
128 |
| - ] |
| 136 | + label: 'Best Practices', |
| 137 | + link: '/guides/best-practices', |
| 138 | + }, |
| 139 | + ], |
129 | 140 | },
|
130 | 141 | {
|
131 |
| - label: "HTTP Integration", |
| 142 | + label: 'HTTP Integration', |
132 | 143 | collapsed: true,
|
133 | 144 | items: [
|
134 | 145 | {
|
135 |
| - label: "Express Integration", |
136 |
| - link: "/http/express" |
| 146 | + label: 'Express Integration', |
| 147 | + link: '/http/express', |
137 | 148 | },
|
138 | 149 | {
|
139 |
| - label: "Fastify Integration", |
140 |
| - link: "/http/fastify" |
| 150 | + label: 'Fastify Integration', |
| 151 | + link: '/http/fastify', |
141 | 152 | },
|
142 | 153 | {
|
143 |
| - label: "Custom Integrations", |
144 |
| - link: "/http/custom" |
145 |
| - } |
146 |
| - ] |
| 154 | + label: 'Custom Integrations', |
| 155 | + link: '/http/custom', |
| 156 | + }, |
| 157 | + ], |
147 | 158 | },
|
148 | 159 | {
|
149 |
| - label: "API Reference", |
| 160 | + label: 'API Reference', |
150 | 161 | collapsed: true,
|
151 | 162 | items: [
|
152 | 163 | {
|
153 |
| - label: "Core API", |
154 |
| - link: "/api/core" |
| 164 | + label: 'Core API', |
| 165 | + link: '/api/core', |
155 | 166 | },
|
156 | 167 | {
|
157 |
| - label: "Utilities", |
158 |
| - link: "/api/utilities" |
| 168 | + label: 'Utilities', |
| 169 | + link: '/api/utilities', |
159 | 170 | },
|
160 | 171 | {
|
161 |
| - label: "Configuration", |
162 |
| - link: "/api/configuration" |
| 172 | + label: 'Configuration', |
| 173 | + link: '/api/configuration', |
163 | 174 | },
|
164 | 175 | {
|
165 |
| - label: "Decorators", |
166 |
| - link: "/api/decorators" |
167 |
| - } |
168 |
| - ] |
| 176 | + label: 'Decorators', |
| 177 | + link: '/api/decorators', |
| 178 | + }, |
| 179 | + ], |
169 | 180 | },
|
170 | 181 | {
|
171 |
| - label: "Resources", |
| 182 | + label: 'Resources', |
172 | 183 | collapsed: true,
|
173 | 184 | items: [
|
174 | 185 | {
|
175 |
| - label: "FAQ", |
176 |
| - link: "/resources/faq" |
| 186 | + label: 'FAQ', |
| 187 | + link: '/resources/faq', |
177 | 188 | },
|
178 | 189 | {
|
179 |
| - label: "Examples", |
180 |
| - link: "/resources/examples" |
| 190 | + label: 'Examples', |
| 191 | + link: '/resources/examples', |
181 | 192 | },
|
182 | 193 | {
|
183 |
| - label: "Community", |
184 |
| - link: "/resources/community" |
| 194 | + label: 'Community', |
| 195 | + link: '/resources/community', |
185 | 196 | },
|
186 | 197 | {
|
187 |
| - label: "Contributing", |
188 |
| - link: "/resources/contributing" |
189 |
| - } |
190 |
| - ] |
191 |
| - } |
| 198 | + label: 'Contributing', |
| 199 | + link: '/resources/contributing', |
| 200 | + }, |
| 201 | + ], |
| 202 | + }, |
192 | 203 | ],
|
193 | 204 | lastUpdated: true,
|
194 |
| - pagination: true |
195 |
| - }) |
196 |
| - ] |
197 |
| -}); |
| 205 | + pagination: true, |
| 206 | + }), |
| 207 | + ], |
| 208 | +}) |
0 commit comments