Update config.ts for v3.9

This commit is contained in:
Félix Piédallu 2025-09-26 19:34:43 +02:00
parent 9e2de6f27f
commit bef26ebb4a

View file

@ -10,14 +10,14 @@ const config: Config = {
favicon: 'img/favicon.png', favicon: 'img/favicon.png',
url: 'https://semalibre.com', url: 'https://semalibre.com',
baseUrl: '/', baseUrl: '/site',
onBrokenLinks: 'throw', onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
onBrokenAnchors: 'throw', onBrokenAnchors: 'throw',
onDuplicateRoutes: 'throw', onDuplicateRoutes: 'throw',
future: { future: {
v4: true,
experimental_faster: true, experimental_faster: true,
}, },
@ -29,6 +29,12 @@ const config: Config = {
], ],
}, },
markdown: {
hooks: {
onBrokenMarkdownLinks: 'throw',
},
},
presets: [ presets: [
[ [
'classic', 'classic',
@ -135,7 +141,7 @@ const config: Config = {
'ruby', 'ruby',
'shell-session', 'shell-session',
'toml', 'toml',
'yaml' 'yaml',
], ],
}, },
} satisfies Preset.ThemeConfig, } satisfies Preset.ThemeConfig,