From 110ebe920eb3a45506d327aeb21f753be9a21a00 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 25 Nov 2023 08:22:16 -0800 Subject: [PATCH] Documentation: Add ai bot (#2383) --- docs/configs/docker.md | 2 +- docs/scripts/extra.js | 6 ++++++ mkdocs.yml | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 docs/scripts/extra.js diff --git a/docs/configs/docker.md b/docs/configs/docker.md index ea70897ac..2eaf26839 100644 --- a/docs/configs/docker.md +++ b/docs/configs/docker.md @@ -153,7 +153,7 @@ labels: - homepage.widget.fields=["field1","field2"] # optional ``` -You can add specify fields for e.g. the [CustomAPI](/widgets/services/customapi) widget by using array-style dot notation: +You can add specify fields for e.g. the [CustomAPI](../widgets/services/customapi.md) widget by using array-style dot notation: ```yaml labels: diff --git a/docs/scripts/extra.js b/docs/scripts/extra.js new file mode 100644 index 000000000..f2946fd4c --- /dev/null +++ b/docs/scripts/extra.js @@ -0,0 +1,6 @@ +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); +}); diff --git a/mkdocs.yml b/mkdocs.yml index f356c1502..97951650f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -191,6 +191,8 @@ theme: extra_css: - "stylesheets/extra.css" +extra_javascript: + - "scripts/extra.js" extra: version: