Skip to content

Commit ff4835f

Browse files
committed
enable posthog
1 parent 02c9f60 commit ff4835f

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

docusaurus.config.js

+11
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
const path = require("path");
44

5+
const appUrl = process.env.POSTHOG_API_HOST || "-"
6+
const apiKey = process.env.POSTHOG_PROJECT_KEY || "-"
7+
58
module.exports = {
69
trailingSlash: true,
710
title: "ZeroTier Documentation",
@@ -15,6 +18,14 @@ module.exports = {
1518
projectName: "docs", // Usually your repo name.
1619
plugins: [
1720
require.resolve('docusaurus-lunr-search'),
21+
[
22+
"posthog-docusaurus",
23+
{
24+
apiKey: apiKey,
25+
appUrl: appUrl,
26+
enableInDevelopment: false,
27+
},
28+
],
1829
],
1930
future: {
2031
experimental_faster: true,

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"npm-run-all2": "^6.2.3",
4646
"pixelmatch": "^6.0.0",
4747
"pngjs": "^7.0.0",
48+
"posthog-docusaurus": "^2.0.4",
4849
"react": "^18.3.1",
4950
"react-dom": "^18.3.1",
5051
"redocusaurus": "^2.2.2"

yarn.lock

+8
Original file line numberDiff line numberDiff line change
@@ -13901,6 +13901,13 @@ __metadata:
1390113901
languageName: node
1390213902
linkType: hard
1390313903

13904+
"posthog-docusaurus@npm:^2.0.4":
13905+
version: 2.0.4
13906+
resolution: "posthog-docusaurus@npm:2.0.4"
13907+
checksum: 10c0/94ee96eecc76be6f311c8f39b82adec8c123ed4af9c505bb56fe78ddad9b26347db5501a4c21e7b793e93709dbc96ae61936c7fa161b87941e36d2f3be8f0527
13908+
languageName: node
13909+
linkType: hard
13910+
1390413911
"pretty-error@npm:^4.0.0":
1390513912
version: 4.0.0
1390613913
resolution: "pretty-error@npm:4.0.0"
@@ -17063,6 +17070,7 @@ __metadata:
1706317070
npm-run-all2: "npm:^6.2.3"
1706417071
pixelmatch: "npm:^6.0.0"
1706517072
pngjs: "npm:^7.0.0"
17073+
posthog-docusaurus: "npm:^2.0.4"
1706617074
react: "npm:^18.3.1"
1706717075
react-dom: "npm:^18.3.1"
1706817076
redocusaurus: "npm:^2.2.2"

0 commit comments

Comments
 (0)