Skip to content

Commit

Permalink
add posthog docusaurus plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwong525 committed Apr 13, 2024
1 parent edfca19 commit 9ba351f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docusaurus/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,14 @@ const config: Config = {
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
plugins: [
[
"posthog-docusaurus",
{
apiKey: "phc_brFjanMrA2KXPYyvFjLdwJC9VJvl4VG7mG9yKqvgCCY",
},
],
],
};

export default config;
9 changes: 9 additions & 0 deletions docusaurus/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docusaurus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@docusaurus/preset-classic": "3.2.1",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"posthog-docusaurus": "^2.0.0",
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
Expand Down

0 comments on commit 9ba351f

Please sign in to comment.