Lucien Cartier-Tilet
d54aabd621
All checks were successful
deploy / deploy (push) Successful in 2m24s
This commit removes dependency on rxjs. It also implements better composables to handle data fetching from remote APIs and caching these values more transparently. This commit also switches from yarn to npm It also switches to the official Umami plugin
47 lines
1.2 KiB
TypeScript
47 lines
1.2 KiB
TypeScript
import { defaultTheme } from '@vuepress/theme-default';
|
|
import { viteBundler } from '@vuepress/bundler-vite';
|
|
import { defineUserConfig } from 'vuepress';
|
|
import { searchProPlugin } from 'vuepress-plugin-search-pro';
|
|
import { umamiAnalyticsPlugin } from '@vuepress/plugin-umami-analytics';
|
|
|
|
import { head } from './head';
|
|
import { locales, searchLocales } 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,
|
|
bundler: viteBundler({}),
|
|
markdown: {
|
|
html: true,
|
|
linkify: true,
|
|
typographer: true,
|
|
},
|
|
plugins: [
|
|
searchProPlugin({
|
|
indexContent: true,
|
|
locales: searchLocales,
|
|
}),
|
|
isProd
|
|
? umamiAnalyticsPlugin({
|
|
id: '67166941-8c83-4a19-bc8c-139e44b7f7aa',
|
|
link: 'https://umami.phundrak.com/script.js',
|
|
})
|
|
: [],
|
|
],
|
|
locales: locales,
|
|
theme: defaultTheme({
|
|
contributors: false,
|
|
locales: themeLocales,
|
|
repo: 'https://labs.phundrak.com/phundrak/phundrak.com',
|
|
themePlugins: {
|
|
copyCode: false,
|
|
prismjs: false,
|
|
},
|
|
}),
|
|
});
|