feat: add matomo

This commit is contained in:
Derrick Hammer 2023-09-30 01:36:19 -04:00
parent e3dab9542b
commit 5a6eb31444
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 19045 additions and 19025 deletions

View File

@ -97,7 +97,14 @@ const config = {
theme: lightCodeTheme, theme: lightCodeTheme,
darkTheme: darkCodeTheme, darkTheme: darkCodeTheme,
}, },
matomo: {
matomoUrl: "https://piwiki.lumeweb.com",
siteId: "3",
phpLoader: "matomo.php",
jsLoader: "matomo.js",
},
}), }),
plugins: ["docusaurus-plugin-matomo"],
}; };
module.exports = config; module.exports = config;

16
package-lock.json generated
View File

@ -1,17 +1,18 @@
{ {
"name": "@lumeweb/docs.lumeweb.com", "name": "@lumeweb/docs.lumeweb.com",
"version": "0.0.0", "version": "0.1.0-develop.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/docs.lumeweb.com", "name": "@lumeweb/docs.lumeweb.com",
"version": "0.0.0", "version": "0.1.0-develop.1",
"dependencies": { "dependencies": {
"@docusaurus/core": "2.4.1", "@docusaurus/core": "2.4.1",
"@docusaurus/preset-classic": "2.4.1", "@docusaurus/preset-classic": "2.4.1",
"@mdx-js/react": "^1.6.22", "@mdx-js/react": "^1.6.22",
"clsx": "^1.2.1", "clsx": "^1.2.1",
"docusaurus-plugin-matomo": "^0.0.6",
"prism-react-renderer": "^1.3.5", "prism-react-renderer": "^1.3.5",
"react": "^17.0.2", "react": "^17.0.2",
"react-dom": "^17.0.2" "react-dom": "^17.0.2"
@ -6671,6 +6672,17 @@
"node": ">=6" "node": ">=6"
} }
}, },
"node_modules/docusaurus-plugin-matomo": {
"version": "0.0.6",
"resolved": "https://registry.npmjs.org/docusaurus-plugin-matomo/-/docusaurus-plugin-matomo-0.0.6.tgz",
"integrity": "sha512-zAhUz3eMaW2tUJsvV5guOMwb554swoVEeI55BZA10LVk3+PyfWYpBl2FEHITe0ofA8/vG6BTuTzGNSWxW70NwA==",
"engines": {
"node": ">=12.13.0"
},
"peerDependencies": {
"@docusaurus/core": "^2.0.0-alpha.56"
}
},
"node_modules/dom-converter": { "node_modules/dom-converter": {
"version": "0.2.0", "version": "0.2.0",
"resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz",

View File

@ -24,19 +24,20 @@
"@docusaurus/preset-classic": "2.4.1", "@docusaurus/preset-classic": "2.4.1",
"@mdx-js/react": "^1.6.22", "@mdx-js/react": "^1.6.22",
"clsx": "^1.2.1", "clsx": "^1.2.1",
"docusaurus-plugin-matomo": "^0.0.6",
"prism-react-renderer": "^1.3.5", "prism-react-renderer": "^1.3.5",
"react": "^17.0.2", "react": "^17.0.2",
"react-dom": "^17.0.2" "react-dom": "^17.0.2"
}, },
"devDependencies": { "devDependencies": {
"@docusaurus/module-type-aliases": "2.4.1", "@docusaurus/module-type-aliases": "2.4.1",
"@tsconfig/docusaurus": "^1.0.5",
"typescript": "^4.7.4",
"@semantic-release/changelog": "^6.0.3", "@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1", "@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^10.0.4", "@semantic-release/npm": "^10.0.4",
"@semantic-release/release-notes-generator": "^11.0.4", "@semantic-release/release-notes-generator": "^11.0.4",
"semantic-release": "^21.0.7" "@tsconfig/docusaurus": "^1.0.5",
"semantic-release": "^21.0.7",
"typescript": "^4.7.4"
}, },
"browserslist": { "browserslist": {
"production": [ "production": [