Skip to content

Commit 675af94

Browse files
committed
Multiple improvements: Remove Docusaurus logo, add Google Analytics, integrate Sentry
1 parent 45ceed6 commit 675af94

File tree

3 files changed

+37
-4
lines changed

3 files changed

+37
-4
lines changed

docusaurus.config.ts

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,30 @@ const config: Config = {
7979
],
8080
],
8181

82+
plugins: [
83+
[
84+
'docusaurus-plugin-sentry',
85+
{
86+
DSN: 'https://c928d425f7cf44cab41620de8f31fe57@o4508898407481344.ingest.us.sentry.io/4508935235698688',
87+
allEnvironments: false, // Only enable in production
88+
configuration: {
89+
script: {
90+
defer: true,
91+
},
92+
}
93+
},
94+
],
95+
],
96+
8297
themeConfig: {
8398
// Replace with your project's social card
8499
image: 'img/docusaurus-social-card.jpg',
100+
gtag: {
101+
trackingID: 'G-4G4NJBHVNF',
102+
anonymizeIP: true,
103+
},
85104
navbar: {
86105
title: 'MyCoder Docs',
87-
logo: {
88-
alt: 'MyCoder Logo',
89-
src: 'img/logo.svg',
90-
},
91106
items: [
92107
{
93108
type: 'docSidebar',

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@docusaurus/preset-classic": "3.7.0",
2121
"@mdx-js/react": "^3.0.0",
2222
"clsx": "^2.0.0",
23+
"docusaurus-plugin-sentry": "^2.0.0",
2324
"prism-react-renderer": "^2.3.0",
2425
"react": "^19.0.0",
2526
"react-dom": "^19.0.0"

pnpm-lock.yaml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)