From b5891f2ec2469016c8316a4f60c3d4df55aa0b5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Delafontaine?= Date: Thu, 20 Jun 2024 10:50:26 +0200 Subject: [PATCH] mise en place tracker matomo, plugin docusaurus --- docusaurus.config.js | 3 ++- package-lock.json | 12 ++++++++++++ package.json | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 349215b..0ccb812 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -39,7 +39,8 @@ const config = { require.resolve('docusaurus-lunr-search'), { languages: ['en', 'fr'], includeRoutes: ['/docs'], - } + }, + 'docusaurus-plugin-matomo' ]], presets: [ diff --git a/package-lock.json b/package-lock.json index d7bfa50..40e7515 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "@mdx-js/react": "^3.0.0", "clsx": "^2.0.0", "docusaurus-lunr-search": "^3.3.2", + "docusaurus-plugin-matomo": "^0.0.8", "prism-react-renderer": "^2.3.0", "react": "^18.0.0", "react-dom": "^18.0.0" @@ -5793,6 +5794,17 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/docusaurus-plugin-matomo": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/docusaurus-plugin-matomo/-/docusaurus-plugin-matomo-0.0.8.tgz", + "integrity": "sha512-YSaDdjxI7uN1FuNLSGrQy4BmDEXwwyL6vac7GfmS7wFBLck/Ias5jHqENPBHXe36m2cYzyesGPQL1EsS9vanwA==", + "engines": { + "node": ">=12.13.0" + }, + "peerDependencies": { + "@docusaurus/core": "^2.0.0-alpha.56 || ^3.0.0" + } + }, "node_modules/dom-converter": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", diff --git a/package.json b/package.json index 5201259..e6be841 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "@mdx-js/react": "^3.0.0", "clsx": "^2.0.0", "docusaurus-lunr-search": "^3.3.2", + "docusaurus-plugin-matomo": "^0.0.8", "prism-react-renderer": "^2.3.0", "react": "^18.0.0", "react-dom": "^18.0.0"