chore: update vuepress and plugins
This commit is contained in:
parent
333b7a7562
commit
727ec58600
@ -1,11 +1,11 @@
|
||||
import { defaultTheme } from '@vuepress/theme-default';
|
||||
import { viteBundler } from '@vuepress/bundler-vite';
|
||||
import { defineUserConfig } from 'vuepress';
|
||||
import { searchProPlugin } from 'vuepress-plugin-search-pro';
|
||||
import { slimsearchPlugin } from '@vuepress/plugin-slimsearch';
|
||||
import { umamiAnalyticsPlugin } from '@vuepress/plugin-umami-analytics';
|
||||
|
||||
import { head } from './head';
|
||||
import { locales, searchLocales } from './locales';
|
||||
import { locales, searchLocaleLfn } from './locales';
|
||||
import { themeLocales } from './themeLocales';
|
||||
|
||||
const isProd = process.env.NODE_ENV === 'production';
|
||||
@ -15,16 +15,26 @@ export default defineUserConfig({
|
||||
title: 'Lucien Cartier-Tilet',
|
||||
description: 'Site web personnel de Lucien Cartier-Tilet',
|
||||
head: head,
|
||||
bundler: viteBundler({}),
|
||||
bundler: isProd
|
||||
? viteBundler({})
|
||||
: viteBundler({
|
||||
viteOptions: {
|
||||
server: {
|
||||
allowedHosts: true,
|
||||
},
|
||||
},
|
||||
}),
|
||||
markdown: {
|
||||
html: true,
|
||||
linkify: true,
|
||||
typographer: true,
|
||||
},
|
||||
plugins: [
|
||||
searchProPlugin({
|
||||
slimsearchPlugin({
|
||||
indexContent: true,
|
||||
locales: searchLocales,
|
||||
indexLocaleOptions: {
|
||||
'/lfn': searchLocaleLfn,
|
||||
},
|
||||
}),
|
||||
isProd
|
||||
? umamiAnalyticsPlugin({
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { SearchProLocaleConfig } from 'vuepress-plugin-search-pro';
|
||||
import SlimSarchLocaleData from '@vuepress/plugin-slimsearch';
|
||||
|
||||
export const locales = {
|
||||
'/': {
|
||||
@ -18,37 +18,19 @@ export const locales = {
|
||||
},
|
||||
};
|
||||
|
||||
export const searchLocales: SearchProLocaleConfig = {
|
||||
'/fr/': {
|
||||
cancel: 'Annuler',
|
||||
placeholder: 'Rechercher',
|
||||
search: 'Rechercher',
|
||||
searching: 'Recherche',
|
||||
defaultTitle: 'Documentation',
|
||||
select: 'sélectionner',
|
||||
navigate: 'naviguer',
|
||||
autocomplete: 'auto-complétion',
|
||||
exit: 'fermer',
|
||||
queryHistory: 'Historique de recherche',
|
||||
resultHistory: 'Historique des résultats',
|
||||
emptyHistory: "Vider l'historique de recherche",
|
||||
emptyResult: 'Aucun résultat trouvé',
|
||||
loading: 'Chargement des index de recherche...',
|
||||
},
|
||||
'/lfn/': {
|
||||
cancel: 'Cansela',
|
||||
placeholder: 'Xerca',
|
||||
search: 'Xerca',
|
||||
searching: 'Xercante',
|
||||
defaultTitle: 'Documentos',
|
||||
select: 'eleje',
|
||||
navigate: 'naviga',
|
||||
autocomplete: 'auto-completi',
|
||||
exit: 'sorti',
|
||||
queryHistory: 'Historia de xerca',
|
||||
resultHistory: 'Historia de resultas',
|
||||
emptyHistory: 'Historia vacua',
|
||||
emptyResult: 'Resultas vacua',
|
||||
loading: 'Cargante la indise de xerca...',
|
||||
},
|
||||
export const searchLocaleLfn: SlimSarchLocaleData = {
|
||||
cancel: 'Cansela',
|
||||
placeholder: 'Xerca',
|
||||
search: 'Xerca',
|
||||
searching: 'Xercante',
|
||||
defaultTitle: 'Documentos',
|
||||
select: 'eleje',
|
||||
navigate: 'naviga',
|
||||
autocomplete: 'auto-completi',
|
||||
exit: 'sorti',
|
||||
queryHistory: 'Historia de xerca',
|
||||
resultHistory: 'Historia de resultas',
|
||||
emptyHistory: 'Historia vacua',
|
||||
emptyResult: 'Resultas vacua',
|
||||
loading: 'Cargante la indise de xerca...',
|
||||
};
|
||||
|
3499
package-lock.json
generated
3499
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -8,11 +8,12 @@
|
||||
"license": "AGPL-3.0",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@vuepress/bundler-vite": "2.0.0-rc.13",
|
||||
"@vuepress/plugin-umami-analytics": "^2.0.0-rc.36",
|
||||
"@vuepress/bundler-vite": "2.0.0-rc.19",
|
||||
"@vuepress/plugin-slimsearch": "^2.0.0-rc.74",
|
||||
"@vuepress/plugin-umami-analytics": "^2.0.0-rc.74",
|
||||
"@vuepress/theme-default": "^2.0.0-rc.36",
|
||||
"vuepress": "2.0.0-rc.13",
|
||||
"vuepress-plugin-search-pro": "^2.0.0-rc.43"
|
||||
"sass-embedded": "^1.83.4",
|
||||
"vuepress": "2.0.0-rc.19"
|
||||
},
|
||||
"dependencies": {
|
||||
"less": "^4.2.0",
|
||||
|
Loading…
Reference in New Issue
Block a user