From 4138598f76638694a4a7537c2579864c74ffdbe9 Mon Sep 17 00:00:00 2001 From: Brian 'bdougie' Douglas Date: Wed, 18 Jun 2025 10:59:13 -0700 Subject: [PATCH 1/5] install posthog-docusaurus --- .vscode/settings.json | 1 + docs/docusaurus.config.js | 8 ++++++++ package-lock.json | 12 ++++++++++++ package.json | 3 +++ 4 files changed, 24 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index d17afc5ae..a200051ee 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -17,6 +17,7 @@ "source.organizeImports": "explicit" }, "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.stickyScroll.enabled": true, "search.exclude": { "**/package-lock.json": true, "binary/bin/**": true, diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index b2f511a64..5bd4683a8 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -203,6 +203,14 @@ const config = { }, }), plugins: [ + [ + "posthog-docusaurus", + { + apiKey: process.env.POSTHOG_API_KEY || "DEV", // Fallback for development + appUrl: "https://us.i.posthog.com", + enableInDevelopment: false, + }, + ], [ "@docusaurus/plugin-client-redirects", { diff --git a/package-lock.json b/package-lock.json index b4289d422..6591755c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,6 +4,9 @@ "requires": true, "packages": { "": { + "dependencies": { + "posthog-docusaurus": "^2.0.4" + }, "devDependencies": { "@typescript-eslint/parser": "^7.8.0", "concurrently": "^9.1.2", @@ -2893,6 +2896,15 @@ "node": ">= 0.4" } }, + "node_modules/posthog-docusaurus": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/posthog-docusaurus/-/posthog-docusaurus-2.0.4.tgz", + "integrity": "sha512-xnEVCBovSuvQvYXGny03CDTc0yZCl7O3Mz21sJpXmE1Gvs21gM33WzWaA9Cm6WvWGYZtQy8t8/g8OjCkmTWlXA==", + "license": "MIT", + "engines": { + "node": ">=10.15.1" + } + }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", diff --git a/package.json b/package.json index 79e522af1..51cdff061 100644 --- a/package.json +++ b/package.json @@ -15,5 +15,8 @@ "prettier": "^3.3.3", "prettier-plugin-tailwindcss": "^0.6.8", "typescript": "^5.6.3" + }, + "dependencies": { + "posthog-docusaurus": "^2.0.4" } } From 9882ba81bdcbd87afd1f5400c8da0bc157781e94 Mon Sep 17 00:00:00 2001 From: Brian 'bdougie' Douglas Date: Wed, 18 Jun 2025 12:00:46 -0700 Subject: [PATCH 2/5] push --- docs/docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 5bd4683a8..22da893bc 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -206,7 +206,7 @@ const config = { [ "posthog-docusaurus", { - apiKey: process.env.POSTHOG_API_KEY || "DEV", // Fallback for development + apiKey: process.env.POSTHOG_API_KEY || "DEV", // fallback appUrl: "https://us.i.posthog.com", enableInDevelopment: false, }, From acaed47ff3eeac76bd6b1a89672077a94b6c0af5 Mon Sep 17 00:00:00 2001 From: Brian 'bdougie' Douglas Date: Wed, 18 Jun 2025 14:00:02 -0700 Subject: [PATCH 3/5] removes comment --- docs/docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 22da893bc..4e873f0db 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -206,7 +206,7 @@ const config = { [ "posthog-docusaurus", { - apiKey: process.env.POSTHOG_API_KEY || "DEV", // fallback + apiKey: process.env.POSTHOG_API_KEY || "DEV", appUrl: "https://us.i.posthog.com", enableInDevelopment: false, }, From 526ef6a38143587e144090610b7e82d942305c61 Mon Sep 17 00:00:00 2001 From: Brian 'bdougie' Douglas Date: Wed, 18 Jun 2025 14:09:18 -0700 Subject: [PATCH 4/5] fix posthog --- docs/package-lock.json | 10 ++++++++++ docs/package.json | 1 + 2 files changed, 11 insertions(+) diff --git a/docs/package-lock.json b/docs/package-lock.json index e96349847..f3a3ea446 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -14,6 +14,7 @@ "@docusaurus/preset-classic": "^3.7.0", "@mdx-js/react": "^3.0.0", "clsx": "^2.1.0", + "posthog-docusaurus": "^2.0.4", "prism-react-renderer": "^2.3.1", "react": "^18.2.0", "react-dom": "^18.2.0" @@ -14990,6 +14991,15 @@ "postcss": "^8.4.31" } }, + "node_modules/posthog-docusaurus": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/posthog-docusaurus/-/posthog-docusaurus-2.0.4.tgz", + "integrity": "sha512-xnEVCBovSuvQvYXGny03CDTc0yZCl7O3Mz21sJpXmE1Gvs21gM33WzWaA9Cm6WvWGYZtQy8t8/g8OjCkmTWlXA==", + "license": "MIT", + "engines": { + "node": ">=10.15.1" + } + }, "node_modules/pretty-error": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-4.0.0.tgz", diff --git a/docs/package.json b/docs/package.json index 8f6ad8c95..67b995070 100644 --- a/docs/package.json +++ b/docs/package.json @@ -22,6 +22,7 @@ "@docusaurus/preset-classic": "^3.7.0", "@mdx-js/react": "^3.0.0", "clsx": "^2.1.0", + "posthog-docusaurus": "^2.0.4", "prism-react-renderer": "^2.3.1", "react": "^18.2.0", "react-dom": "^18.2.0" From d6b07553d30e42eff08b12e56ee4dcbcf4b43308 Mon Sep 17 00:00:00 2001 From: Brian 'bdougie' Douglas Date: Wed, 18 Jun 2025 14:12:45 -0700 Subject: [PATCH 5/5] remove sticky --- .vscode/settings.json | 1 - package-lock.json | 12 ------------ package.json | 3 --- 3 files changed, 16 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index a200051ee..d17afc5ae 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -17,7 +17,6 @@ "source.organizeImports": "explicit" }, "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.stickyScroll.enabled": true, "search.exclude": { "**/package-lock.json": true, "binary/bin/**": true, diff --git a/package-lock.json b/package-lock.json index 6591755c2..b4289d422 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,9 +4,6 @@ "requires": true, "packages": { "": { - "dependencies": { - "posthog-docusaurus": "^2.0.4" - }, "devDependencies": { "@typescript-eslint/parser": "^7.8.0", "concurrently": "^9.1.2", @@ -2896,15 +2893,6 @@ "node": ">= 0.4" } }, - "node_modules/posthog-docusaurus": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/posthog-docusaurus/-/posthog-docusaurus-2.0.4.tgz", - "integrity": "sha512-xnEVCBovSuvQvYXGny03CDTc0yZCl7O3Mz21sJpXmE1Gvs21gM33WzWaA9Cm6WvWGYZtQy8t8/g8OjCkmTWlXA==", - "license": "MIT", - "engines": { - "node": ">=10.15.1" - } - }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", diff --git a/package.json b/package.json index 51cdff061..79e522af1 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,5 @@ "prettier": "^3.3.3", "prettier-plugin-tailwindcss": "^0.6.8", "typescript": "^5.6.3" - }, - "dependencies": { - "posthog-docusaurus": "^2.0.4" } }