Skip to content

Commit 0f3e5ff

Browse files
authored
Add LLM chatbot to Dask docs (#11556)
1 parent aafde77 commit 0f3e5ff

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

docs/source/_static/custom.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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("runllm-keyboard-shortcut", "Mod+j"); // cmd-j or ctrl-j to open the widget.
10+
script.setAttribute("runllm-name", "DaskBot");
11+
script.setAttribute("runllm-position", "BOTTOM_RIGHT"); // put above ethical ads
12+
script.setAttribute("runllm-position-x", "20px");
13+
script.setAttribute("runllm-position-y", "50%");
14+
script.setAttribute("runllm-assistant-id", "273");
15+
script.setAttribute("runllm-theme-color", "#FFC11E");
16+
script.setAttribute("runllm-slack-community-url", "https://dask.slack.com/");
17+
script.setAttribute("runllm-per-user-usage-limit", 2);
18+
script.setAttribute("runllm-usage-limit-effective-days", 30);
19+
script.setAttribute("runllm-usage-limit-message", `Hi! You've hit the limit for anonymous questions, but you can join us on Slack in #DaskBot and ask as many questions as you'd like.`);
20+
script.setAttribute("runllm-brand-logo", "_images/dask_icon.svg");
21+
script.setAttribute("runllm-floating-button-text", "Ask DaskBot");
22+
script.setAttribute("runllm-join-community-text", "Chat with DaskBot in Slack");
23+
24+
script.async = true;
25+
document.head.appendChild(script);
26+
});

docs/source/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@
154154
# so a file named "default.css" will overwrite the builtin "default.css".
155155
html_static_path = ["_static"]
156156

157+
html_js_files = ["custom.js"]
158+
157159
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
158160
# using the given strftime format.
159161
# html_last_updated_fmt = '%b %d, %Y'

0 commit comments

Comments
 (0)