-
Notifications
You must be signed in to change notification settings - Fork 11
/
nuxt.config.ts
255 lines (237 loc) · 11.7 KB
/
nuxt.config.ts
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
import ExcerptTransformerModule from './excerpt-transformer-module/excerpt-transformer-module'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-07-28',
modules: [
// @ts-ignore
ExcerptTransformerModule,
'@nuxtjs/tailwindcss',
'nuxt-content-assets', // needs to be before @nuxt/content
'@nuxt/content',
'unplugin-icons/nuxt',
'@nuxt/devtools',
'@nuxt/image',
],
nitro: {
prerender: {
routes: ['/feed.xml'],
},
routeRules: {
// Make the Matrix configuration accessible to clients (and all other
// configuration in this directory with it).
'/.well-known/**': { cors: true },
}
},
// Make all components in ~/components available for Nuxt Content through its
// MDC syntax, not only the ones in ~/components/content (which are global by
// default).
components: {
global: true,
dirs: ['~/components']
},
// If you have enabled Take Over Mode or installed the TypeScript Vue Plugin
// (Volar), you can disable generating the shim for *.vue files in your
// nuxt.config file:
// https://nuxt.com/docs/getting-started/installation#prerequisites
typescript: {
shim: false,
tsConfig: {
compilerOptions: {
types: [
"unplugin-icons/types/vue",
]
}
}
},
css: [
// Typography
'@fontsource-variable/public-sans',
'@fontsource-variable/public-sans/wght-italic.css',
'@fontsource/ibm-plex-mono/latin-400.css',
'@fontsource/ibm-plex-mono/latin-700.css',
],
// Nuxt Content configuration
content: {
// https://content.nuxtjs.org/api/configuration
documentDriven: {
// The configuration below is supposed to be default according to
// https://content.nuxtjs.org/api/configuration#documentdriven, but that's
// somehow not the case.
// TODO: Double-check after a while and simplify to 'documentDriven: true'
globals: {
theme: {
where: [{
_id: 'content:_theme.yml'
}],
},
},
},
highlight: {
// See https://github.com/shikijs/shiki/blob/main/docs/themes.md
theme: "github-light",
preload: [
// Add all languages here for which code highlighting is desired.
// https://github.com/shikijs/shiki/blob/main/docs/languages.md
'bash',
'python',
]
},
},
// Nuxt Content Assets configuration.
// See https://github.com/davestewart/nuxt-content-assets for options.
contentAssets: {
// add image size hints
// Note: *Do not* add the 'url' size hint as it prevents IPX (the library
// behind Nuxt Image) from processing the image, resulting in an error
// like
// [403] [IPX_FORBIDDEN_PATH] Forbidden path: /blog/2023-04-11-ecl61/latchup-colour.jpg?width=600&height=400
imageSize: 'attrs',
},
// Integrate Nuxt Content Assets with Nuxt Image.
extends: [
'node_modules/nuxt-content-assets/cache',
],
// Nuxt Image configuration
image: {
// Serve images as webp by default (if supported by the browser and the
// provider), JPEG otherwise.
// Note: The netlify provider does *not* support webp.
format: ['webp', "jpeg"],
// Only for IPX (local previews and static generation)
// Base directory for images.
// Use Nuxt Image (only) for images served through nuxt-content-assets,
// i.e., all images in the `content` directory.
//
// IMPORTANT: No images are served from the assets or public directory.
// Store all images in content/images instead!
dir: '.nuxt/content-assets/public',
},
app: {
head: {
title: 'FOSSi Foundation',
htmlAttrs: {
lang: 'en',
},
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
link: [
{ rel: 'apple-touch-icon', type: 'image/png', sizes: "180x180", href: '/apple-touch-icon.png' },
{ rel: 'icon', type: 'image/png', sizes: "32x32", href: "/favicon-32x32.png" },
{ rel: 'icon', type: 'image/png', sizes: "16x16", href: "/favicon-16x16.png" },
],
}
},
routeRules: {
// Redirect the Latch-Up landing page to the most current one.
'/latch-up': { redirect: '/latch-up/2024' },
// Redirect legacy URL to the new dispatcher URL.
// (Keep the URL aligned with the conference name "Latch-Up".)
'/latchup': { redirect: '/latch-up' },
// Redirect the ORConf landing page to the most current one.
'/orconf': { redirect: '/orconf/2024' },
// Matrix server hosting
// Disable prerendering to ensure that the redirects are done using HTTP
// headers, and not HTML redirects.
// Broken redirects here lead to broken Matrix federation, so be careful!
'/.well-known/matrix/server': {
redirect: 'https://matrix.fossi-foundation.org/.well-known/matrix/server',
prerender: false
},
'/.well-known/matrix/client': {
redirect: 'https://matrix.fossi-foundation.org/.well-known/matrix/client',
prerender: false
},
'/.well-known/matrix/support': {
redirect: 'https://matrix.fossi-foundation.org/.well-known/matrix/support',
prerender: false
},
// Blog posts from pre-2023 website
'/2015/10/10/welcome': { redirect: '/blog/2015-10-10-welcome' },
'/2016/01/28/update': { redirect: '/blog/2016-01-28-update' },
'/2016/02/20/licenses': { redirect: '/blog/2016-02-20-licenses' },
'/2016/03/01/gsoc': { redirect: '/blog/2016-03-01-gsoc' },
'/2016/04/28/designcontest': { redirect: '/blog/2016-04-28-designcontest' },
'/2016/07/07/welcome_andrew': { redirect: '/blog/2016-07-07-welcome_andrew' },
'/2016/07/31/gsocupdate': { redirect: '/blog/2016-07-31-gsocupdate' },
'/2016/08/03/orconf_2016_first_batch': { redirect: '/blog/2016-08-03-orconf_2016_first_batch' },
'/2016/08/16/froscon': { redirect: '/blog/2016-08-16-froscon' },
'/2016/10/13/designcontest': { redirect: '/blog/2016-10-13-designcontest' },
'/2017/01/18/fosdem': { redirect: '/blog/2017-01-18-fosdem' },
'/2017/01/22/librecores': { redirect: '/blog/2017-01-22-librecores' },
'/2017/01/26/outlook': { redirect: '/blog/2017-01-26-outlook' },
'/2017/02/10/licensing-roadmap': { redirect: '/blog/2017-02-10-licensing-roadmap' },
'/2017/02/16/tensilica-day-riscv-munich': { redirect: '/blog/2017-02-16-tensilica-day-riscv-munich' },
'/2017/03/02/gsoc': { redirect: '/blog/2017-03-02-gsoc' },
'/2017/04/07/riscv-munich': { redirect: '/blog/2017-04-07-riscv-munich' },
'/2017/05/04/gsoc': { redirect: '/blog/2017-05-04-gsoc' },
'/2017/06/13/oshpark-sponsorship': { redirect: '/blog/2017-06-13-oshpark-sponsorship' },
'/2017/07/15/gsoc': { redirect: '/blog/2017-07-15-gsoc' },
'/2017/07/27/orconf_2017_teaser': { redirect: '/blog/2017-07-27-orconf_2017_teaser' },
'/2017/08/11/rs_sponsors_orconf': { redirect: '/blog/2017-08-11-rs_sponsors_orconf' },
'/2017/09/14/orconf_2017_roundup': { redirect: '/blog/2017-09-14-orconf_2017_roundup' },
'/2017/09/22/librecores-contrib': { redirect: '/blog/2017-09-22-librecores-contrib' },
'/2018/01/11/gsoc': { redirect: '/blog/2018-01-11-gsoc' },
'/2018/01/28/ORConf_2018_announcement': { redirect: '/blog/2018-01-28-orconf_2018_announcement' },
'/2018/02/12/gsoc': { redirect: '/blog/2018-02-12-gsoc' },
'/2018/07/15/ECL': { redirect: '/blog/2018-07-15-ecl' },
'/2018/07/27/ORConf_2018_update': { redirect: '/blog/2018-07-27-orconf_2018_update' },
'/2018/08/15/ECL': { redirect: '/blog/2018-08-15-ecl' },
'/2018/10/12/ECL': { redirect: '/blog/2018-10-12-ecl' },
'/2018/11/07/orconf-videos': { redirect: '/blog/2018-11-07-orconf-videos' },
'/2019/02/24/announcing-latchup-portland': { redirect: '/blog/2019-02-24-announcing-latchup-portland' },
'/2019/02/26/gsoc': { redirect: '/blog/2019-02-26-gsoc' },
'/2019/03/30/latchup-portland-details': { redirect: '/blog/2019-03-30-latchup-portland-details' },
'/2019/06/01/gsoc': { redirect: '/blog/2019-06-01-gsoc' },
'/2019/06/05/openhwgroup': { redirect: '/blog/2019-06-05-openhwgroup' },
'/2019/06/11/ECL': { redirect: '/blog/2019-06-11-ecl' },
'/2019/07/01/ORConf_2019_announcement': { redirect: '/blog/2019-07-01-orconf_2019_announcement' },
'/2019/08/23/gsoc_LibrecoresCI_Report': { redirect: '/blog/2019-08-23-gsoc_librecoresci_report' },
'/2019/09/03/gsoc-64b-pointers-in-rv32': { redirect: '/blog/2019-09-03-gsoc-64b-pointers-in-rv32' },
'/2019/09/04/gsoc-finished': { redirect: '/blog/2019-09-04-gsoc-finished' },
'/2020/01/06/fossistanbul': { redirect: '/blog/2020-01-06-fossistanbul' },
'/2020/01/22/announcing-latchup-cambridge': { redirect: '/blog/2020-01-22-announcing-latchup-cambridge' },
'/2020/02/15/ECL': { redirect: '/blog/2020-02-15-ecl' },
'/2020/03/19/ECL': { redirect: '/blog/2020-03-19-ecl' },
'/2020/03/31/gsocrules': { redirect: '/blog/2020-03-31-gsocrules' },
'/2020/04/01/cocotb-usersurvey': { redirect: '/blog/2020-04-01-cocotb-usersurvey' },
'/2020/05/04/gsoc2020-intro': { redirect: '/blog/2020-05-04-gsoc2020-intro' },
'/2020/06/17/fossi-dial-up': { redirect: '/blog/2020-06-17-fossi-dial-up' },
'/2020/06/18/solderpad-announcement': { redirect: '/blog/2020-06-18-solderpad-announcement' },
'/2020/06/30/skywater-pdk': { redirect: '/blog/2020-06-30-skywater-pdk' },
'/2020/07/08/cocotb-1-4-0': { redirect: '/blog/2020-07-08-cocotb-1-4-0' },
'/2020/12/31/year-recap': { redirect: '/blog/2020-12-31-year-recap' },
'/2021/01/19/embench-1-0': { redirect: '/blog/2021-01-19-embench-1-0' },
'/2021/03/07/45-chips-in-30-days': { redirect: '/blog/2021-03-07-45-chips-in-30-days' },
'/2021/03/10/gsoc': { redirect: '/blog/2021-03-10-gsoc' },
'/2021/03/11/cocotb-1-5-0': { redirect: '/blog/2021-03-11-cocotb-1-5-0' },
'/2021/06/28/gsoc2021-students': { redirect: '/blog/2021-06-28-gsoc2021-students' },
'/2021/07/13/jon-board': { redirect: '/blog/2021-07-13-jon-board' },
'/2021/09/09/gsoc-finished': { redirect: '/blog/2021-09-09-gsoc-finished' },
'/2021/10/20/cocotb-1-6-0': { redirect: '/blog/2021-10-20-cocotb-1-6-0' },
'/2022/03/06/ecl48': { redirect: '/blog/2022-03-06-ecl48' },
'/2022/04/11/gsoc': { redirect: '/blog/2022-04-11-gsoc' },
'/2022/04/14/ecl49': { redirect: '/blog/2022-04-14-ecl49' },
'/2022/05/10/ecl50': { redirect: '/blog/2022-05-10-ecl50' },
'/2022/06/14/ecl51': { redirect: '/blog/2022-06-14-ecl51' },
'/2022/07/12/ecl52': { redirect: '/blog/2022-07-12-ecl52' },
'/2022/08/09/ecl53': { redirect: '/blog/2022-08-09-ecl53' },
'/2022/08/11/gsoc22-students': { redirect: '/blog/2022-08-11-gsoc22-students' },
'/2022/09/13/ecl54': { redirect: '/blog/2022-09-13-ecl54' },
'/2022/10/11/ecl55': { redirect: '/blog/2022-10-11-ecl55' },
'/2022/10/19/librecores': { redirect: '/blog/2022-10-19-librecores' },
'/2022/11/08/ecl56': { redirect: '/blog/2022-11-08-ecl56' },
'/2022/12/12/ecl57': { redirect: '/blog/2022-12-12-ecl57' },
'/2023/01/01/conferences23': { redirect: '/blog/2023-01-01-conferences23' },
'/2023/01/10/ecl58': { redirect: '/blog/2023-01-10-ecl58' },
'/2023/02/14/ecl59': { redirect: '/blog/2023-02-14-ecl59' },
'/2023/03/07/gsoc': { redirect: '/blog/2023-03-07-gsoc' },
'/2023/03/14/ecl60': { redirect: '/blog/2023-03-14-ecl60' },
'/2023/04/11/ecl61': { redirect: '/blog/2023-04-11-ecl61' },
'/2023/05/09/ecl62': { redirect: '/blog/2023-05-09-ecl62' },
'/2023/06/12/ecl63': { redirect: '/blog/2023-06-12-ecl63' },
'/2023/07/02/gsoc23-students': { redirect: '/blog/2023-07-02-gsoc23-students' },
'/2023/07/11/ecl64': { redirect: '/blog/2023-07-11-ecl64' },
'/2023/08/08/ecl65': { redirect: '/blog/2023-08-08-ecl65' },
'/2023/09/12/ecl66': { redirect: '/blog/2023-09-12-ecl66' },
}
});