2024-01-27 15:15:57 +00:00
|
|
|
import { defaultTheme } from '@vuepress/theme-default';
|
|
|
|
import { viteBundler } from '@vuepress/bundler-vite';
|
|
|
|
import { defineUserConfig } from 'vuepress';
|
|
|
|
import { searchProPlugin } from 'vuepress-plugin-search-pro';
|
2024-06-20 07:27:59 +00:00
|
|
|
import { umamiAnalyticsPlugin } from '@vuepress/plugin-umami-analytics';
|
2024-01-27 15:15:57 +00:00
|
|
|
|
|
|
|
import { head } from './head';
|
|
|
|
import { locales, searchLocales } from './locales';
|
2023-05-08 12:44:10 +00:00
|
|
|
import { themeLocales } from './themeLocales';
|
2023-01-31 17:13:33 +00:00
|
|
|
|
2024-06-20 07:27:59 +00:00
|
|
|
const isProd = process.env.NODE_ENV === 'production';
|
2024-02-26 05:50:01 +00:00
|
|
|
|
2023-01-31 17:13:33 +00:00
|
|
|
export default defineUserConfig({
|
|
|
|
lang: 'fr-FR',
|
|
|
|
title: 'Lucien Cartier-Tilet',
|
|
|
|
description: 'Site web personnel de Lucien Cartier-Tilet',
|
2023-02-01 01:41:44 +00:00
|
|
|
head: head,
|
2024-01-27 15:15:57 +00:00
|
|
|
bundler: viteBundler({}),
|
2023-01-31 17:13:33 +00:00
|
|
|
markdown: {
|
|
|
|
html: true,
|
|
|
|
linkify: true,
|
|
|
|
typographer: true,
|
|
|
|
},
|
2024-01-27 15:15:57 +00:00
|
|
|
plugins: [
|
|
|
|
searchProPlugin({
|
|
|
|
indexContent: true,
|
|
|
|
locales: searchLocales,
|
|
|
|
}),
|
2024-02-26 05:50:01 +00:00
|
|
|
isProd
|
|
|
|
? umamiAnalyticsPlugin({
|
|
|
|
id: '67166941-8c83-4a19-bc8c-139e44b7f7aa',
|
2024-06-20 07:27:59 +00:00
|
|
|
link: 'https://umami.phundrak.com/script.js',
|
2024-02-26 05:50:01 +00:00
|
|
|
})
|
|
|
|
: [],
|
2024-01-27 15:15:57 +00:00
|
|
|
],
|
2023-02-01 01:41:44 +00:00
|
|
|
locales: locales,
|
2023-01-31 17:13:33 +00:00
|
|
|
theme: defaultTheme({
|
2023-02-01 00:02:23 +00:00
|
|
|
contributors: false,
|
2023-02-01 01:41:44 +00:00
|
|
|
locales: themeLocales,
|
|
|
|
repo: 'https://labs.phundrak.com/phundrak/phundrak.com',
|
2024-06-20 07:27:59 +00:00
|
|
|
themePlugins: {
|
|
|
|
copyCode: false,
|
|
|
|
prismjs: false,
|
|
|
|
},
|
2023-01-31 17:13:33 +00:00
|
|
|
}),
|
|
|
|
});
|