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: