|
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/docs", |
| 7 | + base: "/docs/", |
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: "Introduction", |
69 | 69 | collapsed: false,
|
70 | 70 | items: [
|
71 | 71 | {
|
72 |
| - label: 'Getting Started', |
73 |
| - link: '/getting-started', |
74 |
| - badge: 'New', |
| 72 | + label: "Getting Started", |
| 73 | + link: "/getting-started", |
| 74 | + badge: "New" |
75 | 75 | },
|
76 | 76 | {
|
77 |
| - label: 'Installation', |
78 |
| - link: '/installation', |
| 77 | + label: "Installation", |
| 78 | + link: "/installation" |
79 | 79 | },
|
80 | 80 | {
|
81 |
| - label: 'Quickstart', |
82 |
| - link: '/quickstart', |
83 |
| - }, |
84 |
| - ], |
| 81 | + label: "Quickstart", |
| 82 | + link: "/quickstart" |
| 83 | + } |
| 84 | + ] |
85 | 85 | },
|
86 | 86 | {
|
87 |
| - label: 'Core Concepts', |
| 87 | + label: "Core Concepts", |
88 | 88 | collapsed: false,
|
89 | 89 | items: [
|
90 | 90 | {
|
91 |
| - label: 'Event-Driven Architecture', |
92 |
| - link: '/concepts/event-driven', |
| 91 | + label: "Event-Driven Architecture", |
| 92 | + link: "/concepts/event-driven" |
93 | 93 | },
|
94 | 94 | {
|
95 |
| - label: 'Channels', |
96 |
| - link: '/concepts/channels', |
| 95 | + label: "Channels", |
| 96 | + link: "/concepts/channels" |
97 | 97 | },
|
98 | 98 | {
|
99 |
| - label: 'Controllers', |
100 |
| - link: '/concepts/controllers', |
| 99 | + label: "Controllers", |
| 100 | + link: "/concepts/controllers" |
101 | 101 | },
|
102 | 102 | {
|
103 |
| - label: 'Modules', |
104 |
| - link: '/concepts/modules', |
105 |
| - }, |
106 |
| - ], |
| 103 | + label: "Modules", |
| 104 | + link: "/concepts/modules" |
| 105 | + } |
| 106 | + ] |
107 | 107 | },
|
108 | 108 | {
|
109 |
| - label: 'Guides', |
| 109 | + label: "Guides", |
110 | 110 | collapsed: true,
|
111 | 111 | items: [
|
112 | 112 | {
|
113 |
| - label: 'Basic Usage', |
114 |
| - link: '/guides/basic-usage', |
| 113 | + label: "Basic Usage", |
| 114 | + link: "/guides/basic-usage" |
115 | 115 | },
|
116 | 116 | {
|
117 |
| - label: 'Dependency Injection', |
118 |
| - link: '/guides/dependency-injection', |
| 117 | + label: "Dependency Injection", |
| 118 | + link: "/guides/dependency-injection" |
119 | 119 | },
|
120 | 120 | {
|
121 |
| - label: 'Advanced Features', |
122 |
| - link: '/guides/advanced-features', |
| 121 | + label: "Advanced Features", |
| 122 | + link: "/guides/advanced-features" |
123 | 123 | },
|
124 | 124 | {
|
125 |
| - label: 'Best Practices', |
126 |
| - link: '/guides/best-practices', |
127 |
| - }, |
128 |
| - ], |
| 125 | + label: "Best Practices", |
| 126 | + link: "/guides/best-practices" |
| 127 | + } |
| 128 | + ] |
129 | 129 | },
|
130 | 130 | {
|
131 |
| - label: 'HTTP Integration', |
| 131 | + label: "HTTP Integration", |
132 | 132 | collapsed: true,
|
133 | 133 | items: [
|
134 | 134 | {
|
135 |
| - label: 'Express Integration', |
136 |
| - link: '/http/express', |
| 135 | + label: "Express Integration", |
| 136 | + link: "/http/express" |
137 | 137 | },
|
138 | 138 | {
|
139 |
| - label: 'Fastify Integration', |
140 |
| - link: '/http/fastify', |
| 139 | + label: "Fastify Integration", |
| 140 | + link: "/http/fastify" |
141 | 141 | },
|
142 | 142 | {
|
143 |
| - label: 'Custom Integrations', |
144 |
| - link: '/http/custom', |
145 |
| - }, |
146 |
| - ], |
| 143 | + label: "Custom Integrations", |
| 144 | + link: "/http/custom" |
| 145 | + } |
| 146 | + ] |
147 | 147 | },
|
148 | 148 | {
|
149 |
| - label: 'API Reference', |
| 149 | + label: "API Reference", |
150 | 150 | collapsed: true,
|
151 | 151 | items: [
|
152 | 152 | {
|
153 |
| - label: 'Core API', |
154 |
| - link: '/api/core', |
| 153 | + label: "Core API", |
| 154 | + link: "/api/core" |
155 | 155 | },
|
156 | 156 | {
|
157 |
| - label: 'Utilities', |
158 |
| - link: '/api/utilities', |
| 157 | + label: "Utilities", |
| 158 | + link: "/api/utilities" |
159 | 159 | },
|
160 | 160 | {
|
161 |
| - label: 'Configuration', |
162 |
| - link: '/api/configuration', |
| 161 | + label: "Configuration", |
| 162 | + link: "/api/configuration" |
163 | 163 | },
|
164 | 164 | {
|
165 |
| - label: 'Decorators', |
166 |
| - link: '/api/decorators', |
167 |
| - }, |
168 |
| - ], |
| 165 | + label: "Decorators", |
| 166 | + link: "/api/decorators" |
| 167 | + } |
| 168 | + ] |
169 | 169 | },
|
170 | 170 | {
|
171 |
| - label: 'Resources', |
| 171 | + label: "Resources", |
172 | 172 | collapsed: true,
|
173 | 173 | items: [
|
174 | 174 | {
|
175 |
| - label: 'FAQ', |
176 |
| - link: '/resources/faq', |
| 175 | + label: "FAQ", |
| 176 | + link: "/resources/faq" |
177 | 177 | },
|
178 | 178 | {
|
179 |
| - label: 'Examples', |
180 |
| - link: '/resources/examples', |
| 179 | + label: "Examples", |
| 180 | + link: "/resources/examples" |
181 | 181 | },
|
182 | 182 | {
|
183 |
| - label: 'Community', |
184 |
| - link: '/resources/community', |
| 183 | + label: "Community", |
| 184 | + link: "/resources/community" |
185 | 185 | },
|
186 | 186 | {
|
187 |
| - label: 'Contributing', |
188 |
| - link: '/resources/contributing', |
189 |
| - }, |
190 |
| - ], |
191 |
| - }, |
| 187 | + label: "Contributing", |
| 188 | + link: "/resources/contributing" |
| 189 | + } |
| 190 | + ] |
| 191 | + } |
192 | 192 | ],
|
193 | 193 | lastUpdated: true,
|
194 |
| - pagination: true, |
195 |
| - }), |
196 |
| - ], |
197 |
| -}) |
| 194 | + pagination: true |
| 195 | + }) |
| 196 | + ] |
| 197 | +}); |
0 commit comments