Skip to content

Commit

Permalink
[type:feature] modify to matomo plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Aias00 committed Jan 3, 2025
1 parent 9df120e commit 8906848
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 25 deletions.
8 changes: 7 additions & 1 deletion home/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,17 @@ module.exports = {
repoUrl,
cdnUrl,
},
clientModules: [path.resolve(__dirname, './src/pages/components/Matomo.js')],
i18n: {
defaultLocale: 'en',
locales: ['zh-cn', 'en'],
},
themeConfig: {
matomo: {
matomoUrl: 'https://analytics.apache.org/',
siteId: 'ID',
phpLoader: 'matomo.php',
jsLoader: 'matomo.js',
},
image: '/img/hertzbeat-logo.svg',
liveCodeBlock: {
playgroundPosition: 'bottom',
Expand Down Expand Up @@ -345,6 +350,7 @@ module.exports = {
fromExtensions: ['html'],
},
],
'docusaurus-plugin-matomo',
'@docusaurus/plugin-ideal-image',
[
'@docusaurus/plugin-pwa',
Expand Down
5 changes: 3 additions & 2 deletions home/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
"aos": "^2.3.4",
"clsx": "1.2.1",
"color": "3.2.1",
"docusaurus-plugin-matomo": "^0.0.8",
"file-loader": "6.2.0",
"markdownlint-cli2": "^0.13.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-slick": "0.29.0",
Expand All @@ -41,8 +43,7 @@
"swiper": "7.4.1",
"url-loader": "4.1.1",
"workbox-routing": "6.5.3",
"workbox-strategies": "6.5.3",
"markdownlint-cli2": "^0.13.0"
"workbox-strategies": "6.5.3"
},
"browserslist": {
"production": [
Expand Down
22 changes: 0 additions & 22 deletions home/src/pages/components/Matomo.js

This file was deleted.

0 comments on commit 8906848

Please sign in to comment.