Skip to content

Commit 3f6d43d

Browse files
authored
Setting up RunLLm AI Chatbot (#925)
1 parent b40750f commit 3f6d43d

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

docs/_static/js/runllm-widget.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
document.addEventListener("DOMContentLoaded", function () {
2+
var script = document.createElement("script");
3+
script.type = "module";
4+
script.id = "runllm-widget-script"
5+
6+
script.src = "https://widget.runllm.com";
7+
8+
script.setAttribute("version", "stable");
9+
script.setAttribute("crossorigin", "true");
10+
script.setAttribute("runllm-keyboard-shortcut", "Mod+j");
11+
script.setAttribute("runllm-name", "Helion");
12+
script.setAttribute("runllm-position", "BOTTOM_RIGHT");
13+
script.setAttribute("runllm-assistant-id", "834");
14+
15+
script.async = true;
16+
document.head.appendChild(script);
17+
});

docs/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ def connect(self, event: str, callback: Callable[..., None]) -> None:
173173

174174
html_static_path = ["_static"]
175175

176+
html_js_files = ["js/runllm-widget.js"]
177+
176178
# Output directory for HTML files
177179
html_output_dir = "../site"
178180

0 commit comments

Comments
 (0)