Skip to content

Commit

Permalink
feat: add hotjar
Browse files Browse the repository at this point in the history
  • Loading branch information
yongenaelf committed Sep 3, 2024
1 parent a6a735b commit 058eed0
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8,761 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
TYPESENSE_COLLECTION_NAME=
TYPESENSE_SERVER_HOST=
TYPESENSE_SEARCH_ONLY_APIKEY=
TYPESENSE_SEARCH_ONLY_APIKEY=
HOTJAR_ID=
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
echo TYPESENSE_COLLECTION_NAME=${{ vars.TYPESENSE_COLLECTION_NAME }} >> .env
echo TYPESENSE_SERVER_HOST=${{ vars.TYPESENSE_SERVER_HOST }} >> .env
echo TYPESENSE_SEARCH_ONLY_APIKEY=${{ vars.TYPESENSE_SEARCH_ONLY_APIKEY }} >> .env
echo HOTJAR_ID=${{ vars.HOTJAR_ID }} >> .env
- run: npm run build

- name: Log in to Docker Hub
Expand Down
5 changes: 5 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const config: Config = {
locales: ["en"],
},

plugins: ["docusaurus-plugin-hotjar"],

presets: [
[
"classic",
Expand Down Expand Up @@ -120,6 +122,9 @@ const config: Config = {
typesenseSearchParameters: {},
contextualSearch: true,
},
hotjar: {
applicationId: process.env.HOTJAR_ID,
},
} satisfies Preset.ThemeConfig,
stylesheets: [
{
Expand Down
7 changes: 7 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 @@ -21,6 +21,7 @@
"@sinm/react-file-tree": "^1.1.1",
"chaingpt-component": "^0.2.0-beta.3",
"clsx": "^2.0.0",
"docusaurus-plugin-hotjar": "^0.0.2",
"docusaurus-theme-search-typesense": "^0.20.0-0",
"dotenv": "^16.4.5",
"prism-react-renderer": "^2.3.0",
Expand Down
Loading

0 comments on commit 058eed0

Please sign in to comment.