diff --git a/docs/_static/custom.js b/docs/_static/custom.js new file mode 100644 index 00000000000..6b867194374 --- /dev/null +++ b/docs/_static/custom.js @@ -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); +}); diff --git a/docs/conf.py b/docs/conf.py index 783eb11e414..cde50b8cadd 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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"