Skip to content

Commit 6ee3925

Browse files
committed
Addressed PR comments and moved script to <head>
Signed-off-by: Christina Zhu <christina@anyscale.com>
1 parent d4bb026 commit 6ee3925

File tree

3 files changed

+14
-17
lines changed

3 files changed

+14
-17
lines changed

doc/source/_static/js/runllm-widget.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

doc/source/_templates/extrahead.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,19 @@
6060
<!-- Data to be shared with JS on every page -->
6161
<script>
6262
window.data = {
63-
copyIconSrc: "{{ pathto('_static/copy-button.svg', 1) }}"
63+
copyIconSrc: "{{ pathto('_static/copy-button.svg', 1) }}",
6464
};
6565
</script>
66+
67+
<!-- RunLLM Widget -->
68+
<script
69+
type="module"
70+
id="runllm-widget-script"
71+
src="https://widget.runllm.com"
72+
version="stable"
73+
crossorigin="anonymous"
74+
runllm-keyboard-shortcut="Mod+j"
75+
runllm-name="Ray RunLLM Bot"
76+
runllm-position="BOTTOM_RIGHT"
77+
runllm-assistant-id="1003"
78+
></script>

doc/source/conf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,6 @@ def setup(app):
581581
app.add_js_file("js/dismissable-banner.js", defer="defer")
582582
app.add_css_file("css/dismissable-banner.css")
583583

584-
app.add_js_file("js/runllm-widget.js", defer="defer")
585-
586584
base_path = pathlib.Path(__file__).parent
587585
github_docs = DownloadAndPreprocessEcosystemDocs(base_path)
588586
# Download docs from ecosystem library repos

0 commit comments

Comments
 (0)