Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
- run: gh workflow run deploy.yaml --repo apify/apify-docs-private
env:
GITHUB_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
SMARTLOOK_PROJECT_KEY: ${{ secrets.SMARTLOOK_PROJECT_KEY }}
INTERCOM_APP_ID: ${{ secrets.INTERCOM_APP_ID }}
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
env:
APIFY_SIGNING_TOKEN: ${{ secrets.APIFY_SIGNING_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
SMARTLOOK_PROJECT_KEY: ${{ secrets.SMARTLOOK_PROJECT_KEY }}
INTERCOM_APP_ID: ${{ secrets.INTERCOM_APP_ID }}

- name: Set up GitHub Pages
uses: actions/configure-pages@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lychee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
env:
APIFY_SIGNING_TOKEN: ${{ secrets.APIFY_SIGNING_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
SMARTLOOK_PROJECT_KEY: ${{ secrets.SMARTLOOK_PROJECT_KEY }}
INTERCOM_APP_ID: ${{ secrets.INTERCOM_APP_ID }}

- name: Run Lychee Link Checker
id: lychee
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- run: npm run build
env:
SMARTLOOK_PROJECT_KEY: ${{ secrets.SMARTLOOK_PROJECT_KEY }}
INTERCOM_APP_ID: ${{ secrets.INTERCOM_APP_ID }}

lint_content:
name: Lint markdown content
Expand Down
1 change: 0 additions & 1 deletion apify-docs-theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"axios": "^1.7.4",
"babel-loader": "^9.1.3",
"docusaurus-gtm-plugin": "^0.0.2",
"docusaurus-plugin-smartlook": "^1.0.2",
"postcss-preset-env": "^9.3.0",
"prism-react-renderer": "^2.0.6"
},
Expand Down
2 changes: 0 additions & 2 deletions apify-docs-theme/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const themeConfig = ({
hideable: true,
},
},
smartlook: { projectKey: process.env.SMARTLOOK_PROJECT_KEY || '-' },
navbar: {
title: 'Apify Docs',
logo: {
Expand Down Expand Up @@ -266,7 +265,6 @@ const themeConfig = ({
});

const plugins = [
'docusaurus-plugin-smartlook',
[
'docusaurus-gtm-plugin',
{
Expand Down
14 changes: 13 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,19 @@ module.exports = {
sizes: 'any',
},
},
],
// Intercom messenger
process.env.INTERCOM_APP_ID && {
tagName: 'script',
innerHTML: `window.intercomSettings={api_base:"https://api-iam.intercom.io",app_id:"${process.env.INTERCOM_APP_ID}"};`,
attributes: {},
},
// Intercom messenger
process.env.INTERCOM_APP_ID && {
tagName: 'script',
innerHTML: `(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',w.intercomSettings);}else{var d=document;var i=function(){i.c(arguments);};i.q=[];i.c=function(args){i.q.push(args);};w.Intercom=i;var l=function(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/${process.env.INTERCOM_APP_ID}';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);};if(document.readyState==='complete'){l();}else if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()`,
attributes: {},
},
].filter(Boolean),

onBrokenLinks:
/** @type {import('@docusaurus/types').ReportingSeverity} */ ('throw'),
Expand Down
9 changes: 1 addition & 8 deletions package-lock.json

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