From 1d820b02cbccf10a3084ca112b8738ce2ef33e85 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 16 Jul 2024 12:12:10 -0700 Subject: [PATCH] Remove Glime bot --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- docs/more/sponsors.md | 7 ------ docs/scripts/extra.js | 35 --------------------------- docs/stylesheets/extra.css | 4 --- docs/troubleshooting/index.md | 4 --- mkdocs.yml | 2 -- 6 files changed, 1 insertion(+), 53 deletions(-) delete mode 100644 docs/scripts/extra.js diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 08eebdf96..b799d3e43 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -13,7 +13,7 @@ body: attributes: label: Before submitting, please confirm the following options: - - label: I confirm this was discussed, and the maintainers suggest I open an issue (note that AI bots are not maintainers). + - label: I confirm this was discussed, and the maintainers asked that I open an issue. required: true - label: I am aware that if I create this issue without a discussion, it will be removed without a response. required: true diff --git a/docs/more/sponsors.md b/docs/more/sponsors.md index 1046d3544..bb877a6ce 100644 --- a/docs/more/sponsors.md +++ b/docs/more/sponsors.md @@ -34,13 +34,6 @@ These companies help the Homepage project by providing services, tools, and reso
- -diff --git a/docs/scripts/extra.js b/docs/scripts/extra.js deleted file mode 100644 index 8383e85e6..000000000 --- a/docs/scripts/extra.js +++ /dev/null @@ -1,35 +0,0 @@ -var glimeScript; -var glimeStyles = []; -document$.subscribe(function () { - if (!glimeScript) { - glimeScript = document.createElement("script"); - glimeScript.setAttribute("src", "https://cdn.glimelab.ai/widget/1.0.0/widget.js"); - glimeScript.setAttribute("onload", "onGlimeLoad()"); - document.head.appendChild(glimeScript); - } else { - var newGlimeStyle = document.createElement("style"); - document.head.appendChild(newGlimeStyle); - var i = 0; - glimeStyles.forEach((rule) => { - newGlimeStyle.sheet.insertRule(rule.cssText, i); - i++; - }); - } -}); - -onGlimeLoad = () => { - window.glime.init("Bl3mlvfCnTnRm5"); - setTimeout(() => { - const sheets = document.styleSheets; - [...sheets].forEach((sheet) => { - if (!sheet.href) { - [...sheet.cssRules].forEach((rule) => { - if (!rule || rule.href || !rule.selectorText) return; - if (rule.selectorText.indexOf(".css-") === 0 || rule.selectorText.indexOf("glime") > -1) { - glimeStyles.push(rule); - } - }); - } - }); - }, 1000); -}; diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index feefa0b9c..07ecaa575 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -45,10 +45,6 @@ } } -#glimeRoot * { - font-family: var(--md-text-font) !important; -} - #carbonads { margin-top: 10px; } diff --git a/docs/troubleshooting/index.md b/docs/troubleshooting/index.md index f238c997f..889d79dcf 100644 --- a/docs/troubleshooting/index.md +++ b/docs/troubleshooting/index.md @@ -6,10 +6,6 @@ hide: - navigation --- -## Introducing the Homepage AI Bot - -Thanks to the generous folks at [Glime](https://glimelab.ai), Homepage is now equipped with a pretty clever AI-powered bot. The bot has full knowledge of our docs, GitHub issues and discussions and is 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, [open a GitHub discussion](https://github.com/gethomepage/homepage/discussions) 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/mkdocs.yml b/mkdocs.yml index 26f5fe0a2..a539db6e4 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -225,8 +225,6 @@ theme: extra_css: - "stylesheets/extra.css" -extra_javascript: - - "scripts/extra.js" extra: version: