Skip to content

Commit

Permalink
docs: add docusaurus matomo plugin
Browse files Browse the repository at this point in the history
I added the plugin as a gz file until the upstream pr is merged.

Link to upstream PR: karser/docusaurus-plugin-matomo#6

Signed-off-by: Philip Miglinci <[email protected]>
  • Loading branch information
pmig committed Nov 13, 2023
1 parent 9b4251d commit fd1493d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
Binary file added docs/docusaurus-plugin-matomo-0.0.6.tgz
Binary file not shown.
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
13 changes: 13 additions & 0 deletions docs/package-lock.json

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

1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@easyops-cn/docusaurus-search-local": "^0.37.0",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"docusaurus-plugin-matomo": "file:docusaurus-plugin-matomo-0.0.6.tgz",
"prism-react-renderer": "^2.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down

0 comments on commit fd1493d

Please sign in to comment.