phundrak.com/content/.vuepress/config.ts

57 lines
1.4 KiB
TypeScript
Raw Normal View History

2024-01-27 15:15:57 +00:00
import { defaultTheme } from '@vuepress/theme-default';
import { viteBundler } from '@vuepress/bundler-vite';
import { defineUserConfig } from 'vuepress';
2025-02-09 10:57:54 +00:00
import { slimsearchPlugin } from '@vuepress/plugin-slimsearch';
import { umamiAnalyticsPlugin } from '@vuepress/plugin-umami-analytics';
2024-01-27 15:15:57 +00:00
import { head } from './head';
2025-02-09 10:57:54 +00:00
import { locales, searchLocaleLfn } from './locales';
import { themeLocales } from './themeLocales';
const isProd = process.env.NODE_ENV === 'production';
export default defineUserConfig({
lang: 'fr-FR',
title: 'Lucien Cartier-Tilet',
description: 'Site web personnel de Lucien Cartier-Tilet',
head: head,
2025-02-09 10:57:54 +00:00
bundler: isProd
? viteBundler({})
: viteBundler({
viteOptions: {
server: {
allowedHosts: true,
},
},
}),
markdown: {
html: true,
linkify: true,
typographer: true,
},
2024-01-27 15:15:57 +00:00
plugins: [
2025-02-09 10:57:54 +00:00
slimsearchPlugin({
2024-01-27 15:15:57 +00:00
indexContent: true,
2025-02-09 10:57:54 +00:00
indexLocaleOptions: {
'/lfn': searchLocaleLfn,
},
2024-01-27 15:15:57 +00:00
}),
isProd
? umamiAnalyticsPlugin({
id: '67166941-8c83-4a19-bc8c-139e44b7f7aa',
link: 'https://umami.phundrak.com/script.js',
})
: [],
2024-01-27 15:15:57 +00:00
],
locales: locales,
theme: defaultTheme({
contributors: false,
locales: themeLocales,
repo: 'https://labs.phundrak.com/phundrak/phundrak.com',
themePlugins: {
copyCode: false,
prismjs: false,
},
}),
});