Skip to content

Commit da56a29

Browse files
authored
Merge pull request #219 from maxnorm/docs/posthog
Add PostHog Analytics
2 parents 78dcf3c + 454f3a0 commit da56a29

5 files changed

Lines changed: 23 additions & 7 deletions

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ jobs:
3939
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID || 'dummy' }}
4040
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY || 'dummy' }}
4141
ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME || 'compose' }}
42+
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY || 'dummy' }}
4243

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Compose
2-
![Coverage](https://img.shields.io/badge/coverage-63%25-yellow) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![Discord](https://img.shields.io/badge/Discord-Join%20Chat-blue.svg)](https://discord.gg/DCBD2UKbxc)
2+
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![Discord](https://img.shields.io/badge/Discord-Join%20Chat-blue.svg)](https://discord.gg/DCBD2UKbxc)
33

44
> **⚠️ Early Stage**: Compose is currently in development and only available to contributors. It is **NOT production ready**.
55

website/docusaurus.config.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,6 @@ const config = {
212212
label: 'Installation',
213213
to: '/docs/getting-started/installation',
214214
},
215-
/*
216-
{
217-
label: 'Quick Start',
218-
to: '/docs/getting-started/quick-start',
219-
},
220-
*/
221215
],
222216
},
223217
{
@@ -269,6 +263,16 @@ const config = {
269263
},
270264
}),
271265
}),
266+
plugins: [
267+
[
268+
"posthog-docusaurus",
269+
{
270+
apiKey: process.env.POSTHOG_API_KEY,
271+
appUrl: process.env.POSTHOG_APP_URL || 'https://us.i.posthog.com',
272+
enableInDevelopment: false,
273+
},
274+
]
275+
],
272276
};
273277

274278
export default config;

website/package-lock.json

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

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"clsx": "^2.0.0",
2222
"dotenv": "^17.2.3",
2323
"gsap": "^3.13.0",
24+
"posthog-docusaurus": "^2.0.5",
2425
"prism-react-renderer": "^2.3.0",
2526
"react": "^19.0.0",
2627
"react-dom": "^19.0.0",

0 commit comments

Comments
 (0)