Skip to content

Commit 7ab7fde

Browse files
fix: improve formatting and structure in astro.config.mts for better readability
1 parent d670c33 commit 7ab7fde

File tree

1 file changed

+153
-150
lines changed

1 file changed

+153
-150
lines changed

astro.config.mts

Lines changed: 153 additions & 150 deletions
Original file line numberDiff line numberDiff line change
@@ -162,166 +162,169 @@ export default defineConfig({
162162
plugins: [
163163
...linkValidator,
164164
starlightLlmsTxt({
165-
description: 'StudioCMS is a Server-Side Rendered (SSR) Headless CMS built specifically for Astro. It is designed to seamlessly integrate with Astro projects, providing a robust and efficient content management solution that leverages Astro\'s strengths in performance and developer experience.',
165+
description:
166+
"StudioCMS is a Server-Side Rendered (SSR) Headless CMS built specifically for Astro. It is designed to seamlessly integrate with Astro projects, providing a robust and efficient content management solution that leverages Astro's strengths in performance and developer experience.",
166167
customSets: [
167168
{
168169
label: 'Getting Started',
169-
description: 'Essential resources to help you get up and running with StudioCMS quickly and effectively.',
170-
paths: ['en/start-here/**']
171-
}
172-
],
173-
exclude: [
174-
'**/guides/contributing/**',
170+
description:
171+
'Essential resources to help you get up and running with StudioCMS quickly and effectively.',
172+
paths: ['en/start-here/**'],
173+
},
175174
],
175+
exclude: ['**/guides/contributing/**'],
176176
rawContent: true,
177177
}),
178178
starlightImageZoom(),
179-
starlightSidebarTopics([
180-
{
181-
label: getTranslations('topic-learn'),
182-
link: '/start-here/getting-started/',
183-
icon: 'open-book',
184-
id: 'learn',
185-
items: [
186-
{
187-
label: getTranslations('start-here').en,
188-
translations: getTranslations('start-here'),
189-
autogenerate: { directory: 'start-here' },
190-
},
191-
{
192-
label: getTranslations('how-it-works').en,
193-
translations: getTranslations('how-it-works'),
194-
autogenerate: { directory: 'how-it-works' },
195-
},
196-
{
197-
label: getTranslations('features').en,
198-
translations: getTranslations('features'),
199-
items: [
200-
{
201-
label: getTranslations('plugins').en,
202-
translations: getTranslations('plugins'),
203-
collapsed: true,
204-
autogenerate: { directory: 'plugins' },
205-
},
206-
{
207-
label: getTranslations('storage-api').en,
208-
translations: getTranslations('storage-api'),
209-
collapsed: true,
210-
autogenerate: { directory: 'storage-api' },
211-
badge: {
212-
text: 'New',
213-
variant: 'success',
179+
starlightSidebarTopics(
180+
[
181+
{
182+
label: getTranslations('topic-learn'),
183+
link: '/start-here/getting-started/',
184+
icon: 'open-book',
185+
id: 'learn',
186+
items: [
187+
{
188+
label: getTranslations('start-here').en,
189+
translations: getTranslations('start-here'),
190+
autogenerate: { directory: 'start-here' },
191+
},
192+
{
193+
label: getTranslations('how-it-works').en,
194+
translations: getTranslations('how-it-works'),
195+
autogenerate: { directory: 'how-it-works' },
196+
},
197+
{
198+
label: getTranslations('features').en,
199+
translations: getTranslations('features'),
200+
items: [
201+
{
202+
label: getTranslations('plugins').en,
203+
translations: getTranslations('plugins'),
204+
collapsed: true,
205+
autogenerate: { directory: 'plugins' },
214206
},
215-
},
216-
// TODO - Document more StudioCMS features here
217-
]
218-
},
219-
],
220-
},
221-
{
222-
label: getTranslations('topic-guides'),
223-
link: '/guides/',
224-
icon: 'rocket',
225-
id: 'guides',
226-
items: [
227-
{
228-
label: getTranslations('contributing').en,
229-
translations: getTranslations('contributing'),
230-
autogenerate: { directory: 'guides/contributing' },
231-
},
232-
{
233-
label: getTranslations('upgrade').en,
234-
translations: getTranslations('upgrade'),
235-
items: [
236-
{
237-
slug: 'guides/upgrade/release-notes',
238-
},
239-
{
240-
label: getTranslations('latest').en,
241-
translations: getTranslations('latest'),
242-
link: 'guides/upgrade/latest',
243-
badge: {
244-
text: 'Link',
245-
variant: 'note',
207+
{
208+
label: getTranslations('storage-api').en,
209+
translations: getTranslations('storage-api'),
210+
collapsed: true,
211+
autogenerate: { directory: 'storage-api' },
212+
badge: {
213+
text: 'New',
214+
variant: 'success',
215+
},
246216
},
247-
},
248-
{
249-
label: getTranslations('version').en,
250-
translations: getTranslations('version'),
251-
collapsed: true,
252-
autogenerate: { directory: 'guides/upgrade/version-guides' },
253-
},
254-
],
255-
},
256-
{
257-
label: getTranslations('custom-frontend').en,
258-
translations: getTranslations('custom-frontend'),
259-
autogenerate: { directory: 'guides/custom-frontend' },
260-
},
261-
{
262-
label: getTranslations('database').en,
263-
translations: getTranslations('database'),
264-
autogenerate: { directory: 'guides/database' },
265-
},
266-
],
267-
},
268-
{
269-
label: getTranslations('topic-ecosystem'),
270-
link: '/ecosystem/',
271-
icon: 'puzzle',
272-
id: 'ecosystem',
273-
items: [
274-
{
275-
label: getTranslations('ecosystem-packages').en,
276-
translations: getTranslations('ecosystem-packages'),
277-
autogenerate: { directory: 'ecosystem/packages' },
278-
}
279-
]
280-
},
281-
{
282-
label: getTranslations('topic-package-catalog'),
283-
link: '/package-catalog/',
284-
icon: 'download',
285-
id: 'package-catalog',
286-
items: [
287-
{
288-
label: getTranslations('catalog').en,
289-
translations: getTranslations('catalog'),
290-
link: '/package-catalog',
291-
},
292-
{
293-
label: getTranslations('storage-managers').en,
294-
translations: getTranslations('storage-managers'),
295-
autogenerate: { directory: 'package-catalog/storage-managers' },
296-
},
297-
{
298-
label: getTranslations('studiocms-plugins').en,
299-
translations: getTranslations('studiocms-plugins'),
300-
autogenerate: { directory: 'package-catalog/studiocms-plugins' },
301-
},
302-
{
303-
label: getTranslations('community-plugins').en,
304-
translations: getTranslations('community-plugins'),
305-
autogenerate: { directory: 'package-catalog/community-plugins' },
306-
},
307-
],
308-
},
217+
// TODO - Document more StudioCMS features here
218+
],
219+
},
220+
],
221+
},
222+
{
223+
label: getTranslations('topic-guides'),
224+
link: '/guides/',
225+
icon: 'rocket',
226+
id: 'guides',
227+
items: [
228+
{
229+
label: getTranslations('contributing').en,
230+
translations: getTranslations('contributing'),
231+
autogenerate: { directory: 'guides/contributing' },
232+
},
233+
{
234+
label: getTranslations('upgrade').en,
235+
translations: getTranslations('upgrade'),
236+
items: [
237+
{
238+
slug: 'guides/upgrade/release-notes',
239+
},
240+
{
241+
label: getTranslations('latest').en,
242+
translations: getTranslations('latest'),
243+
link: 'guides/upgrade/latest',
244+
badge: {
245+
text: 'Link',
246+
variant: 'note',
247+
},
248+
},
249+
{
250+
label: getTranslations('version').en,
251+
translations: getTranslations('version'),
252+
collapsed: true,
253+
autogenerate: { directory: 'guides/upgrade/version-guides' },
254+
},
255+
],
256+
},
257+
{
258+
label: getTranslations('custom-frontend').en,
259+
translations: getTranslations('custom-frontend'),
260+
autogenerate: { directory: 'guides/custom-frontend' },
261+
},
262+
{
263+
label: getTranslations('database').en,
264+
translations: getTranslations('database'),
265+
autogenerate: { directory: 'guides/database' },
266+
},
267+
],
268+
},
269+
{
270+
label: getTranslations('topic-ecosystem'),
271+
link: '/ecosystem/',
272+
icon: 'puzzle',
273+
id: 'ecosystem',
274+
items: [
275+
{
276+
label: getTranslations('ecosystem-packages').en,
277+
translations: getTranslations('ecosystem-packages'),
278+
autogenerate: { directory: 'ecosystem/packages' },
279+
},
280+
],
281+
},
282+
{
283+
label: getTranslations('topic-package-catalog'),
284+
link: '/package-catalog/',
285+
icon: 'download',
286+
id: 'package-catalog',
287+
items: [
288+
{
289+
label: getTranslations('catalog').en,
290+
translations: getTranslations('catalog'),
291+
link: '/package-catalog',
292+
},
293+
{
294+
label: getTranslations('storage-managers').en,
295+
translations: getTranslations('storage-managers'),
296+
autogenerate: { directory: 'package-catalog/storage-managers' },
297+
},
298+
{
299+
label: getTranslations('studiocms-plugins').en,
300+
translations: getTranslations('studiocms-plugins'),
301+
autogenerate: { directory: 'package-catalog/studiocms-plugins' },
302+
},
303+
{
304+
label: getTranslations('community-plugins').en,
305+
translations: getTranslations('community-plugins'),
306+
autogenerate: { directory: 'package-catalog/community-plugins' },
307+
},
308+
],
309+
},
310+
{
311+
label: getTranslations('topic-references'),
312+
link: '/config-reference/',
313+
icon: 'information',
314+
id: 'references',
315+
items: [
316+
{
317+
label: getTranslations('config-reference').en,
318+
translations: getTranslations('config-reference'),
319+
autogenerate: { directory: 'config-reference' },
320+
},
321+
],
322+
},
323+
],
309324
{
310-
label: getTranslations('topic-references'),
311-
link: '/config-reference/',
312-
icon: 'information',
313-
id: 'references',
314-
items: [
315-
{
316-
label: getTranslations('config-reference').en,
317-
translations: getTranslations('config-reference'),
318-
autogenerate: { directory: 'config-reference' },
319-
},
320-
],
321-
},
322-
], {
323-
exclude: ['**/utils/**'],
324-
}),
325+
exclude: ['**/utils/**'],
326+
}
327+
),
325328
],
326329
}),
327330
],

0 commit comments

Comments
 (0)