Skip to content

Commit

Permalink
Adding posthog integration for analytics (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-vapi authored Jan 8, 2025
1 parent 0870255 commit 38a6d80
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/preview-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
id: generate-docs
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
POSTHOG_PROJECT_API_KEY: ${{ secrets.POSTHOG_PROJECT_API_KEY }}
run: |
OUTPUT=$(fern generate --docs --preview --log-level debug 2>&1) || true
echo "$OUTPUT"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ jobs:
- name: Publish Docs
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
POSTHOG_PROJECT_API_KEY: ${{ secrets.POSTHOG_PROJECT_API_KEY }}
run: fern generate --docs --log-level debug
4 changes: 4 additions & 0 deletions fern/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ layout:
tabs-placement: header
searchbar-placement: header
header-height: 80px
analytics:
posthog:
api-key: ${POSTHOG_PROJECT_API_KEY}
endpoint: https://us.i.posthog.com
navigation:
- tab: documentation
layout:
Expand Down

0 comments on commit 38a6d80

Please sign in to comment.