-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathastro.config.mjs
227 lines (226 loc) · 6.67 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightLinksValidator from 'starlight-links-validator';
// https://astro.build/config
export default defineConfig({
site: 'https://adventofopensource.com',
integrations: [
starlight({
plugins: [starlightLinksValidator()],
title: 'Advent of Open Source',
customCss: [
'./src/styles/custom.css',
],
head: [
{
tag: 'link',
attrs: {
rel: 'icon',
type: 'image/png',
href: '/favicon-96x96.png',
size: '96x96',
},
},
{
tag: 'link',
attrs: {
rel: 'icon',
type: 'image/svg+xml',
href: '/favicon.svg',
},
},
{
tag: 'link',
attrs: {
rel: 'shortcut icon',
href: '/favicon.ico',
},
},
{
tag: 'link',
attrs: {
rel: 'apple-touch-icon',
href: '/apple-touch-icon.png',
size: '180x180',
},
},
{
tag: 'link',
attrs: {
rel: 'manifest',
href: '/site.webmanifest',
},
},
{
tag: 'link',
attrs: {
rel: 'mask-icon',
href: '/safari-pinned-tab.svg',
color: '#4a01fe',
},
},
{
tag: 'meta',
attrs: {
name: 'msapplication-TileColor',
content: '#4a01fe',
},
},
],
logo: {
light: './src/assets/logo.svg',
dark: './src/assets/logo-dark.svg',
replacesTitle: true,
},
social: {
github: 'https://github.com/Open-reSource/adventofopensource.com',
discord: 'https://discord.gg/fpUDwEMGwE',
blueSky: 'https://bsky.app/profile/openresource.dev',
linkedin: 'https://linkedin.com/company/open-re-source/',
mastodon: 'https://fosstodon.org/@openresource',
threads: 'https://www.threads.net/@openresource',
'x.com': 'https://x.com/open_resource',
},
components: {
Footer: './src/components/Footer.astro',
Head: './src/components/Head.astro',
Header: './src/components/Header.astro'
},
sidebar: [
{
label: 'Advent',
items: [
{
label: 'About',
slug: 'advent'
},
{
label: 'Week 1: The Snowglobe Foundations',
collapsed: true,
items: [
{
label: 'Day 1: The Winter Open Source Village',
slug: 'advent/week-1/day-1'
},
{
label: 'Day 2: Guarding the Gift of Code',
slug: 'advent/week-1/day-2'
},
{
label: 'Day 3: Illuminating the Path',
slug: 'advent/week-1/day-3'
},
{
label: 'Day 4: Building the Spirit of Community',
slug: 'advent/week-1/day-4'
},
{
label: 'Day 5: Building the Foundations of Excellence',
slug: 'advent/week-1/day-5'
},
{
label: 'Day 6: Forging the Tools of Creation',
slug: 'advent/week-1/day-6'
},
{
label: 'Day 7: The Rhythm of Progress',
slug: 'advent/week-1/day-7'
},
]
},
{
label: 'Week 2: The Gears of Perfection',
collapsed: true,
items: [
{
label: 'Day 8: The Mirror of Perfection',
slug: 'advent/week-2/day-8'
},
{
label: 'Day 9: The Flow of Unbroken Progress',
slug: 'advent/week-2/day-9'
},
{
label: 'Day 10: The Sentinel\'s Vigil',
slug: 'advent/week-2/day-10'
},
{
label: 'Day 11: The Crucible of Validation',
slug: 'advent/week-2/day-11'
},
{
label: 'Day 12: The Nexus of Continuity',
slug: 'advent/week-2/day-12'
},
{
label: 'Day 13: The Symphony of Collaboration',
slug: 'advent/week-2/day-13'
},
{
label: 'Day 14: The Cadence of Contributions',
slug: 'advent/week-2/day-14'
},
]
},
{
label: 'Week 3: The Chorus of Contribution',
collapsed: true,
items: [
{
label: 'Day 15: The Pulse of the Community',
slug: 'advent/week-3/day-15'
},
{
label: 'Day 16: The Tome of Knowledge',
slug: 'advent/week-3/day-16'
},
{
label: 'Day 17: The Voices of the Commons',
slug: 'advent/week-3/day-17'
},
{
label: 'Day 18: The Hall of Honor',
slug: 'advent/week-3/day-18'
},
{
label: 'Day 19: The Beacon of Knowledge',
slug: 'advent/week-3/day-19'
},
{
label: 'Day 20: The Watcher\'s Lens',
slug: 'advent/week-3/day-20'
},
{
label: 'Day 21: The Multilingual Grove',
slug: 'advent/week-3/day-21'
},
]
},
{
label: 'Week 4: The Evergrowing Grove',
items: [
{
label: 'Day 22: The Well of Enduring Prosperity',
slug: 'advent/week-4/day-22'
},
{
label: 'Day 23: The Bell of Resonance',
slug: 'advent/week-4/day-23'
},
{
label: 'Day 24: The Celestial Compass',
slug: 'advent/week-4/day-24'
},
{
label: 'Day 25: The Gift of the Grove',
slug: 'advent/week-4/day-25'
}
]
},
],
},
],
}),
],
});