-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathastro.config.mjs
More file actions
102 lines (96 loc) · 2.66 KB
/
astro.config.mjs
File metadata and controls
102 lines (96 loc) · 2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
// @ts-check
import { defineConfig } from 'astro/config'
import starlight from '@astrojs/starlight'
import mdx from '@astrojs/mdx'
import starlightImageZoom from 'starlight-image-zoom'
import starlightAutoSidebar from 'starlight-auto-sidebar'
import starlightLlmsTxt from 'starlight-llms-txt'
import starlightLinksValidator from 'starlight-links-validator'
import starlightThemeRapide from 'starlight-theme-rapide'
import tailwindcss from '@tailwindcss/vite'
// https://astro.build/config
export default defineConfig({
integrations: [starlight({
title: {
en: 'Cesbo Help',
ru: 'Справочный центр Cesbo',
es: 'Cesbo Ayuda',
},
logo: {
src: './src/assets/logo.svg',
alt: 'Cesbo logo',
replacesTitle: true,
},
defaultLocale: 'en',
locales: {
en: {
label: 'English',
},
ru: {
label: 'Русский',
},
es: {
label: 'Español',
},
},
routeMiddleware: './src/components/sidebar-middleware.ts',
components: {
},
sidebar: [
{
label: 'Astra',
translations: { es: 'Astra', ru: 'Астра' },
autogenerate: { directory: 'astra' },
collapsed: true,
},
{
label: 'Alta',
translations: { es: 'Alta', ru: 'Альта' },
autogenerate: { directory: 'alta' },
collapsed: true,
},
{
label: 'Senta',
translations: { es: 'Senta', ru: 'Сента' },
autogenerate: { directory: 'senta' },
collapsed: true,
},
{
label: 'Articles',
translations: { es: 'Artículos', ru: 'Статьи' },
autogenerate: { directory: 'articles' },
collapsed: true,
},
],
customCss: [
'./src/styles/global.css',
],
favicon: "/favicon.ico",
plugins: [
starlightThemeRapide(),
starlightImageZoom(),
starlightAutoSidebar(),
starlightLlmsTxt(),
starlightLinksValidator({
errorOnInconsistentLocale: true,
errorOnRelativeLinks: true,
errorOnInvalidHashes: false,
errorOnLocalLinks: false,
}),
],
}),
mdx(),
],
site: "https://help.cesbo.com",
prefetch: {
prefetchAll: true,
defaultStrategy: "tap",
},
redirects: {
"/": "/en/",
"/profile": "https://cesbo.com/accounts/profile/",
},
vite: {
plugins: [tailwindcss()],
},
})