-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathastro.config.mjs
116 lines (113 loc) · 3.2 KB
/
astro.config.mjs
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
// https://starlight.astro.build/reference/configuration
export default defineConfig({
site: 'https://end-4.github.io',
base: '/dots-hyprland-wiki',
integrations: [
starlight({
title: 'end-4/dots-hyprland',
social: {
github: 'https://github.com/end-4/dots-hyprland',
},
editLink: {
baseUrl: 'https://github.com/end-4/dots-hyprland-wiki/tree/main',
},
customCss: ['./src/styles/custom.css'],
tableOfContents: { minHeadingLevel: 1, maxHeadingLevel: 2, },
favicon: './favicon.ico',
lastUpdated: true,
defaultLocale: 'en',
// English docs in `src/content/docs/en/`
// Other lang docs in `src/content/docs/<lang>/`
// See also https://github.com/CloudCannon/pagefind/tree/main/pagefind_ui/translations
locales: {
'en': {
label: 'English', // Engligh
lang: 'en',
},
'es': {
label: 'Español', //Spanish
lang: 'es',
},
// 'fr': {
// label: 'French', //French
// lang: 'fr',
// },
// 'ja': {
// label: 'Japanese', //Japanese
// lang: 'ja',
// },
// 'pl': {
// label: 'Polish', //Polish
// lang: 'pl',
// },
// 'ru': {
// label: 'Russian', //Russian
// lang: 'ru',
// },
// 'tr': {
// label: 'Turkish', //Turkish
// lang: 'tr',
// },
'vi': {
label: 'Tiếng Việt', // Vietnamese
lang: 'vi',
},
'zh-cn': {
label: '简体中文', //Simplified Chinese
lang: 'zh-CN',
},
},
sidebar: [
{
label: 'General',
translations: {
'vi': 'Chung',
'zh-CN': '通用',
'es': 'General',
},
autogenerate: { directory: 'general' },
},
{
label: 'Illogical Impulse',
// idk how to translate badge for group label, guess just a "New" should be ok to everyone though.
badge: { text: 'New', variant: 'success' },
// idk why but it won't work when using `illogical-impulse'
autogenerate: { directory: 'i-i' },
},
{
label: 'Archives (unmaintained)',
collapsed: true,
translations: {
'vi': 'Kho lưu trữ (ko đc duy trì)',
'zh-CN': '存档(不再维护)',
'es': 'Archivos (no mantenidos)',
},
autogenerate: { directory: 'archives' },
},
{
label: 'Dev Notes',
collapsed: true,
badge: { text: 'Dev' },
translations: {
'vi': 'Ghi chú cho dev',
'zh-CN': '开发者笔记',
'es': 'Notas de desarrollo'
},
autogenerate: { directory: 'dev' },
},
{
label: 'Translate this wiki',
collapsed: true,
badge: { text: 'Help wanted', variant: 'note' },
translations: {
'zh-CN': '翻译此文档',
'es': 'Traducir esta wiki',
},
link: '/dev/doc-site-contrib',
},
],
}),
],
});