Skip to content

Commit 0d5e505

Browse files
authored
feat: Setup Smartlook [internal] (#890)
Closes apify/apify-web#3489 Setup Smartlook for Docusaurus. Smartlook token is imported from Doppler. Not sure abou lychee check though cc @TC-MO
1 parent 9ea01c0 commit 0d5e505

File tree

6 files changed

+15
-1
lines changed

6 files changed

+15
-1
lines changed

.github/workflows/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ jobs:
1313
- run: gh workflow run deploy.yaml --repo apify/apify-docs-private
1414
env:
1515
GITHUB_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
16+
SMARTLOOK_PROJECT_KEY: ${{ secrets.SMARTLOOK_PROJECT_KEY }}

.github/workflows/lychee.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
env:
2626
APIFY_SIGNING_TOKEN: ${{ secrets.APIFY_SIGNING_TOKEN }}
2727
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
28+
SMARTLOOK_PROJECT_KEY: ${{ secrets.SMARTLOOK_PROJECT_KEY }}
2829

2930
- uses: lycheeverse/[email protected]
3031
env:

.github/workflows/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3030

3131
- run: npm run build
32+
env:
33+
SMARTLOOK_PROJECT_KEY: ${{ secrets.SMARTLOOK_PROJECT_KEY }}
3234

3335
lint_content:
3436
name: Lint markdown content

apify-docs-theme/src/config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const themeConfig = ({
1313
hideable: true,
1414
},
1515
},
16+
smartlook: { projectKey: process.env.SMARTLOOK_PROJECT_KEY },
1617
navbar: {
1718
title: 'Apify Docs',
1819
logo: {
@@ -255,6 +256,7 @@ const themeConfig = ({
255256
});
256257

257258
const plugins = [
259+
'docusaurus-plugin-smartlook',
258260
[
259261
'docusaurus-gtm-plugin',
260262
{

package-lock.json

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"@docusaurus/theme-mermaid": "^2.4.1",
6666
"@giscus/react": "^2.2.8",
6767
"clsx": "^2.0.0",
68+
"docusaurus-plugin-smartlook": "^1.0.2",
6869
"form-data": "^4.0.0",
6970
"postcss-preset-env": "^9.3.0",
7071
"prop-types": "^15.8.1",

0 commit comments

Comments
 (0)