feat(umami): switch to dedicated Vuepress plugin
All checks were successful
deploy / deploy (push) Successful in 3m24s
All checks were successful
deploy / deploy (push) Successful in 3m24s
This commit is contained in:
parent
1b54860f93
commit
bc36bdec90
@ -2,11 +2,14 @@ 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';
|
||||
|
||||
let isProd = process.env.NODE_ENV === 'production';
|
||||
|
||||
export default defineUserConfig({
|
||||
lang: 'fr-FR',
|
||||
title: 'Lucien Cartier-Tilet',
|
||||
@ -23,6 +26,13 @@ export default defineUserConfig({
|
||||
indexContent: true,
|
||||
locales: searchLocales,
|
||||
}),
|
||||
isProd
|
||||
? umamiAnalyticsPlugin({
|
||||
id: '67166941-8c83-4a19-bc8c-139e44b7f7aa',
|
||||
src: 'https://umami.phundrak.com/script.js',
|
||||
doNotTrack: true,
|
||||
})
|
||||
: [],
|
||||
],
|
||||
locales: locales,
|
||||
theme: defaultTheme({
|
||||
|
@ -6,17 +6,6 @@ interface SimplifiedHeader {
|
||||
}
|
||||
|
||||
const simplifiedHead: SimplifiedHeader[] = [
|
||||
{
|
||||
tag: 'script',
|
||||
content: [
|
||||
{
|
||||
async: true,
|
||||
src: 'https://umami.phundrak.com/script.js',
|
||||
'data-website-id': '67166941-8c83-4a19-bc8c-139e44b7f7aa',
|
||||
'data-do-not-track': 'true',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
tag: 'meta',
|
||||
content: [
|
||||
|
@ -22,12 +22,13 @@
|
||||
"dependencies": {
|
||||
"less": "^4.1.3",
|
||||
"nord": "^0.2.1",
|
||||
"rxjs": "^7.8.1"
|
||||
"rxjs": "^7.8.1",
|
||||
"vuepress-plugin-umami-analytics": "^1.8.0"
|
||||
},
|
||||
"config": {
|
||||
"commitizen": {
|
||||
"path": "./node_modules/cz-conventional-changelog"
|
||||
}
|
||||
},
|
||||
"packageManager": "yarn@4.0.2"
|
||||
"packageManager": "yarn@4.1.0"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user