diff --git a/docs/more/troubleshooting.md b/docs/more/troubleshooting.md index 9d0fdc752..a718f927c 100644 --- a/docs/more/troubleshooting.md +++ b/docs/more/troubleshooting.md @@ -6,6 +6,10 @@ hide: - navigation --- +## Introducing the Homepage AI Bot + +Thanks to the generous folks at [Glime](https://glimelab.ai), Homepage is now equipped with a pretty helpful AI-powered bot. The bot has full knowledge of our docs, GitHub issues and discussions and great at answering specific questions about setting up your Homepage. To use the bot, just hit the 'Ask AI' button on any page in our docs or check out the [#ai-support channel on Discord](https://discord.com/channels/1019316731635834932/1177885603552038993)! + ## General Troubleshooting Tips - For API errors, clicking the "API Error Information" button in the widget will usually show some helpful information as to whether the issue is reaching the service host, an authentication issue, etc. diff --git a/docs/scripts/extra.js b/docs/scripts/extra.js index f2946fd4c..0a5a3ad85 100644 --- a/docs/scripts/extra.js +++ b/docs/scripts/extra.js @@ -1,6 +1,12 @@ +var glimeScript; document$.subscribe(function () { - var glimeScript = document.createElement("script"); - glimeScript.setAttribute("src", "https://cdn.glimelab.ai/widget/1.0.0/widget.js"); - glimeScript.setAttribute("onload", 'window.glime.init("Bl3mlvfCnTnRm5");'); - document.head.appendChild(glimeScript); + if (!glimeScript) { + glimeScript = document.createElement("script"); + glimeScript.setAttribute("data", "name: 'glime'"); + glimeScript.setAttribute("src", "https://cdn.glimelab.ai/widget/1.0.0/widget.js"); + glimeScript.setAttribute("onload", 'window.glime.init("Bl3mlvfCnTnRm5");'); + document.head.appendChild(glimeScript); + } else { + // window.glime.init("Bl3mlvfCnTnRm5"); + } });