Skip to content

Commit

Permalink
DOCS-#0000: Adds RunLLM widget to docs (#7326)
Browse files Browse the repository at this point in the history
Signed-off-by: Vikram Sreekanti <[email protected]>
  • Loading branch information
vsreekanti authored Jun 25, 2024
1 parent e9ab99a commit ea9a4b0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/_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://cdn.jsdelivr.net/npm/@runllm/search-widget@stable/dist/run-llm-search-widget.es.js";

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

script.async = true;
document.head.appendChild(script);
});
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ def noop_decorator(*args, **kwargs):
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path .
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
html_static_path = ["_static"]
html_js_files = ["custom.js"]

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = "sphinx"
Expand Down

0 comments on commit ea9a4b0

Please sign in to comment.