Skip to content

Commit 5d01702

Browse files
authored
feat: add docusaurus-plugin-matomo dependency (#630)
* chore: remove pnpm-lock * feat: add robots.txt file * feat: add docusaurus-plugin-matomo dependency
1 parent 0067115 commit 5d01702

File tree

4 files changed

+12
-12649
lines changed

4 files changed

+12
-12649
lines changed

website/docusaurus.config.js

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ const config = {
8787
editLocalizedFiles: true,
8888
},
8989
],
90+
'docusaurus-plugin-matomo'
9091
],
9192
themeConfig: ({
9293
image: 'img/logo.svg',
@@ -180,7 +181,7 @@ const config = {
180181
metadata: [
181182
{
182183
name: 'keywords',
183-
content: 'apache, fesod, poi, opensource',
184+
content: 'apache, fesod, poi, opensource, fastexcel, easyexcel',
184185
}
185186
],
186187
footer: {
@@ -197,32 +198,16 @@ const config = {
197198
theme: prismThemes.github,
198199
darkTheme: prismThemes.oneDark,
199200
additionalLanguages: ['java', 'bash']
201+
},
202+
matomo: {
203+
matomoUrl: 'https://analytics.apache.org/',
204+
siteId: '83',
205+
phpLoader: 'matomo.php',
206+
jsLoader: 'matomo.js',
200207
}
201208
}),
202209
themes: ['@docusaurus/theme-mermaid'],
203-
headTags: [
204-
{
205-
tagName: 'script',
206-
attributes: {
207-
type: 'text/javascript',
208-
},
209-
innerHTML: `
210-
var _paq = window._paq = window._paq || [];
211-
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
212-
_paq.push(["setDoNotTrack", true]);
213-
_paq.push(["disableCookies"]);
214-
_paq.push(['trackPageView']);
215-
_paq.push(['enableLinkTracking']);
216-
(function() {
217-
var u="https://analytics.apache.org/";
218-
_paq.push(['setTrackerUrl', u+'matomo.php']);
219-
_paq.push(['setSiteId', '83']);
220-
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
221-
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
222-
})();
223-
`,
224-
},
225-
],
210+
headTags: [],
226211
markdown: {
227212
format: 'md',
228213
mermaid: true,

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"@docusaurus/theme-mermaid": "^3.9.1",
2424
"@mdx-js/react": "^3.0.0",
2525
"clsx": "^2.0.0",
26+
"docusaurus-plugin-matomo": "^0.0.8",
2627
"markdownlint-cli2": "^0.18.1",
2728
"prism-react-renderer": "^2.3.0",
2829
"react": "^19.0.0",

0 commit comments

Comments
 (0)