mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-12-18 10:37:11 +00:00
Add Chatwoot to documentation
See repo: https://github.com/chatwoot/chatwoot
This commit is contained in:
parent
6ed051d631
commit
66f59c8d41
2 changed files with 17 additions and 1 deletions
|
@ -37,6 +37,9 @@ const config = {
|
||||||
locales: ['en'],
|
locales: ['en'],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Add a widget for Chatwoot for live chat if users need help
|
||||||
|
clientModules: [require.resolve('./src/components/ChatwootWidget.js')],
|
||||||
|
|
||||||
presets: [
|
presets: [
|
||||||
[
|
[
|
||||||
'classic',
|
'classic',
|
||||||
|
@ -69,7 +72,6 @@ const config = {
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
themeConfig:
|
themeConfig:
|
||||||
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
||||||
({
|
({
|
||||||
|
|
14
documentation/src/components/ChatwootWidget.js
Normal file
14
documentation/src/components/ChatwootWidget.js
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
(function (d, t) {
|
||||||
|
var BASE_URL = "https://app.chatwoot.com";
|
||||||
|
var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
|
||||||
|
g.src = BASE_URL + "/packs/js/sdk.js";
|
||||||
|
g.defer = true;
|
||||||
|
g.async = true;
|
||||||
|
s.parentNode.insertBefore(g, s);
|
||||||
|
g.onload = function () {
|
||||||
|
window.chatwootSDK.run({
|
||||||
|
websiteToken: 'cFxvnLSjfE2UF4UUiPCA5NsF',
|
||||||
|
baseUrl: BASE_URL
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})(document, 'script');
|
Loading…
Reference in a new issue