Skip to content

Commit

Permalink
[DOCS] Adds RunLLM widget (#2462)
Browse files Browse the repository at this point in the history
This PR adds the RunLLM chat widget to the Daft documentation site. 

<img width="1616" alt="image"
src="https://github.com/Eventual-Inc/Daft/assets/867892/6d25b268-c92e-4ec2-8402-0c4bd8702f5d">
  • Loading branch information
vsreekanti committed Jul 3, 2024
1 parent 3752740 commit 674e500
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/source/_static/custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
document.addEventListener("DOMContentLoaded", function () {
var script = document.createElement("script");
script.type = "module";
script.id = "runllm-widget-script"

script.src = "https://widget.runllm.com";

script.setAttribute("version", "stable");
script.setAttribute("runllm-keyboard-shortcut", "Mod+j"); // cmd-j or ctrl-j to open the widget.
script.setAttribute("runllm-name", "Daft");
script.setAttribute("runllm-position", "BOTTOM_RIGHT");
script.setAttribute("runllm-assistant-id", "160");

script.async = true;
document.head.appendChild(script);
});
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
html_theme = "sphinx_book_theme"
html_static_path = ["_static"]
html_css_files = ["header.css", "custom-function-signatures.css"]
html_js_files = ["custom.js"]
html_theme_options = {
# This is how many levels are shown on the secondary sidebar
"show_toc_level": 2,
Expand Down

0 comments on commit 674e500

Please sign in to comment.