diff --git a/docs/javascripts/runllm-widget.js b/docs/javascripts/runllm-widget.js
new file mode 100644
index 00000000..a9f0fef8
--- /dev/null
+++ b/docs/javascripts/runllm-widget.js
@@ -0,0 +1,17 @@
+document.addEventListener("DOMContentLoaded", function() {
+ var script = document.createElement('script');
+ script.defer = true;
+ 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-preset', 'mkdocs');
+ script.setAttribute('runllm-server-address', 'https://api.runllm.com');
+ script.setAttribute('runllm-assistant-id', '111');
+ script.setAttribute('runllm-position', 'BOTTOM_RIGHT');
+ script.setAttribute('runllm-keyboard-shortcut', 'Mod+j');
+ script.setAttribute('runllm-slack-community-url', 'https://quix.io/slack-invite');
+ script.setAttribute('runllm-name', 'RunLLM');
+
+ document.head.appendChild(script);
+});
diff --git a/mkdocs.yml b/mkdocs.yml
index efd5fcbf..72777e5e 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -406,6 +406,7 @@ extra_css:
extra_javascript:
- javascripts/quix.js
- javascripts/feedback.js
+ - javascripts/runllm-widget.js
extra:
social:
- icon: 'fontawesome/brands/github'
diff --git a/overrides/main.html b/overrides/main.html
index 12e6952f..a7188150 100644
--- a/overrides/main.html
+++ b/overrides/main.html
@@ -1,54 +1,86 @@
-{% extends "base.html" %}
+{% extends "base.html" %} {% block extrahead %}
+
+
+
-{% block extrahead %}
-
-
-
-
-
-
-
+
-
+
+
-
-
-
+
+
+
-
-
-
-
-{{ super }}
-{% endblock %}
-
-{% block analytics %}
-{{ super }}
+ })(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=');
+
+
+{{ super }} {% endblock %} {% block analytics %} {{ super }}
-