diff --git a/docusaurus.config.js b/docusaurus.config.js index bcf70e0..2e02f8e 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -25,6 +25,16 @@ const config = { defaultLocale: 'en', locales: ['en'], }, + plugins: [ + [ + "posthog-docusaurus", + { + apiKey: "phc_qy9V53BkvTATJESFrSBvg8Rw5m3KvYuTmmk9IojIjyZ", + appUrl: "https://eu.i.posthog.com", // optional, defaults to "https://us.i.posthog.com" + enableInDevelopment: true, // optional + }, + ], + ], presets: [ [ 'classic', diff --git a/package-lock.json b/package-lock.json index d81c3f4..ec93480 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,8 +10,10 @@ "dependencies": { "@docusaurus/core": "^3.3.2", "@docusaurus/preset-classic": "^3.3.2", + "@docusaurus/theme-search-algolia": "^3.3.2", "@mdx-js/react": "^1.6.22", "clsx": "^1.2.1", + "posthog-docusaurus": "^2.0.2", "prism-react-renderer": "^1.3.5", "react": "^18.3.1", "react-dom": "^18.3.1" @@ -11404,6 +11406,15 @@ "postcss": "^8.4.31" } }, + "node_modules/posthog-docusaurus": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/posthog-docusaurus/-/posthog-docusaurus-2.0.2.tgz", + "integrity": "sha512-RUxVzJqZ214JuEr1msngxXgTYlK+q37Vhhvp4yG07K+UFF12HBU1TrOdl/MEmvHQimsFQNEa68eYasJo2kAsJA==", + "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", @@ -12473,6 +12484,13 @@ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, + "node_modules/search-insights": { + "version": "2.17.3", + "resolved": "https://registry.npmjs.org/search-insights/-/search-insights-2.17.3.tgz", + "integrity": "sha512-RQPdCYTa8A68uM2jwxoY842xDhvx3E5LFL1LxvxCNMev4o5mLuokczhzjAgGwUZBAmOKZknArSxLKmXtIi2AxQ==", + "license": "MIT", + "peer": true + }, "node_modules/section-matter": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/section-matter/-/section-matter-1.0.0.tgz", @@ -13377,6 +13395,20 @@ "is-typedarray": "^1.0.0" } }, + "node_modules/typescript": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", + "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", + "license": "Apache-2.0", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/unicode-canonical-property-names-ecmascript": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", diff --git a/package.json b/package.json index 937f88c..ebb9cda 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "@docusaurus/theme-search-algolia": "^3.3.2", "@mdx-js/react": "^1.6.22", "clsx": "^1.2.1", + "posthog-docusaurus": "^2.0.2", "prism-react-renderer": "^1.3.5", "react": "^18.3.1", "react-dom": "^18.3.1"