Skip to content

Commit

Permalink
Add AI bot info to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Nov 25, 2023
1 parent 5bc6730 commit 507e724
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
4 changes: 4 additions & 0 deletions docs/more/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
14 changes: 10 additions & 4 deletions docs/scripts/extra.js
Original file line number Diff line number Diff line change
@@ -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");
}
});

0 comments on commit 507e724

Please sign in to comment.