Skip to content

Commit

Permalink
fixes--added posthog to docusaurus (#164)
Browse files Browse the repository at this point in the history
* fixes--added posthog to docusaurus

Signed-off-by: Fortune Ikechi <[email protected]>

* updated posthog link

Signed-off-by: Fortune Ikechi <[email protected]>

* remove commented code

Signed-off-by: Fortune Ikechi <[email protected]>

---------

Signed-off-by: Fortune Ikechi <[email protected]>
  • Loading branch information
iamfortune authored Sep 26, 2024
1 parent fe8cbe9 commit d81aa4c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
20 changes: 9 additions & 11 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ const config = {
locales: ["en"],
},

scripts: [
"https://app.posthog.com/static/array.js",
{
src: "/scripts/posthog.js",
async: true,
},
],

presets: [
[
Expand Down Expand Up @@ -78,6 +71,14 @@ const config = {
],

plugins: [
[
"posthog-docusaurus",
{
apiKey: "phc_erld9bkOOEawzcjlc0GovYRGCopzSibVHG4WKE4G5QX",
appUrl: "https://us.i.posthog.com", // optional, defaults to "https://us.i.posthog.com"
enableInDevelopment: false, // optional
},
],
[
"@docusaurus/plugin-client-redirects",
{
Expand Down Expand Up @@ -201,10 +202,7 @@ const config = {
to: "/composer",
label: "Composer",
},
// {
// to: "/runtime",
// label: "Runtime",
// },

{
to: "/aiwarp",
label: "AI-Warp",
Expand Down
10 changes: 10 additions & 0 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"install": "^0.13.0",
"npm": "^10.8.3",
"param-case": "^4.0.0",
"posthog-docusaurus": "^2.0.1",
"prism-react-renderer": "^2.3.1",
"prismjs": "^1.29.0",
"process": "^0.11.10",
Expand Down
4 changes: 3 additions & 1 deletion static/scripts/posthog.js

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

0 comments on commit d81aa4c

Please sign in to comment.