Skip to content

Commit

Permalink
docs: add intercom messenger (#2651)
Browse files Browse the repository at this point in the history
Adding a script that loads Intercom messenger which we can use for AI
chat bot.
  • Loading branch information
webrdaniel committed Sep 3, 2024
1 parent d5b7d16 commit 2812ed9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,20 @@ module.exports = {
}),
],
]),
headTags: [
// Intercom messenger
{
tagName: 'script',
innerHTML: `window.intercomSettings={api_base:"https://api-iam.intercom.io",app_id:"kod1r788"};`,
attributes: {},
},
// Intercom messenger
{
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/kod1r788';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: {},
},
],
plugins: [
[
'docusaurus-plugin-typedoc-api',
Expand Down

0 comments on commit 2812ed9

Please sign in to comment.