Skip to content

Commit

Permalink
docs: add docusaurus matomo plugin
Browse files Browse the repository at this point in the history
Link to upstream PR: karser/docusaurus-plugin-matomo#6

Signed-off-by: Philip Miglinci <[email protected]>
  • Loading branch information
pmig authored and kosmoz committed Nov 13, 2023
1 parent 9b4251d commit d545d88
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const config = {
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
i18n: {defaultLocale: 'en', locales: ['en']},
plugins: ['docusaurus-plugin-matomo'],
presets: [
[
'classic',
Expand Down Expand Up @@ -93,6 +94,12 @@ const config = {
theme: themes.github,
darkTheme: themes.dracula
},
matomo: {
matomoUrl: 'https://a.glasskube.eu/',
siteId: '2',
phpLoader: 'matomo.php',
jsLoader: 'matomo.js',
},
}),
};

Expand Down
12 changes: 12 additions & 0 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,19 @@
"@easyops-cn/docusaurus-search-local": "^0.37.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"docusaurus-plugin-matomo": "0.0.6",
"prism-react-renderer": "^2.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.0.0"
},
"overrides": {
"docusaurus-plugin-matomo": {
"@docusaurus/core": "3.0.0"
}
},
"browserslist": {
"production": [
">0.5%",
Expand Down

0 comments on commit d545d88

Please sign in to comment.