From fc1dfd56c35ef3d23e614192db10312a19d50493 Mon Sep 17 00:00:00 2001 From: sekyonda <127536312+sekyondaMeta@users.noreply.github.com> Date: Tue, 14 Oct 2025 12:05:24 -0400 Subject: [PATCH] RunLLm Test Testing adding runLLM to Helion site --- docs/_static/js/runllm-widget.js | 17 +++++++++++++++++ docs/conf.py | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 docs/_static/js/runllm-widget.js diff --git a/docs/_static/js/runllm-widget.js b/docs/_static/js/runllm-widget.js new file mode 100644 index 000000000..793d3eaf9 --- /dev/null +++ b/docs/_static/js/runllm-widget.js @@ -0,0 +1,17 @@ +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("crossorigin", "true"); + script.setAttribute("runllm-keyboard-shortcut", "Mod+j"); + script.setAttribute("runllm-name", "Helion"); + script.setAttribute("runllm-position", "BOTTOM_RIGHT"); + script.setAttribute("runllm-assistant-id", "834"); + + script.async = true; + document.head.appendChild(script); +}); diff --git a/docs/conf.py b/docs/conf.py index 45c6c1f3d..080cef08c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -173,6 +173,8 @@ def connect(self, event: str, callback: Callable[..., None]) -> None: html_static_path = ["_static"] +html_js_files = ["js/runllm-widget.js"] + # Output directory for HTML files html_output_dir = "../site"