Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
f954d071
Unverified
Commit
f954d071
authored
Jul 27, 2024
by
Chenggang Wu
Committed by
GitHub
Jul 27, 2024
Browse files
[Docs] Add RunLLM chat widget (#6857)
parent
1ad86acf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
docs/source/_static/custom.js
docs/source/_static/custom.js
+16
-0
docs/source/conf.py
docs/source/conf.py
+2
-0
No files found.
docs/source/_static/custom.js
0 → 100644
View file @
f954d071
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
(
"
runllm-keyboard-shortcut
"
,
"
Mod+j
"
);
// cmd-j or ctrl-j to open the widget.
script
.
setAttribute
(
"
runllm-name
"
,
"
vLLM
"
);
script
.
setAttribute
(
"
runllm-position
"
,
"
BOTTOM_RIGHT
"
);
script
.
setAttribute
(
"
runllm-assistant-id
"
,
"
207
"
);
script
.
async
=
true
;
document
.
head
.
appendChild
(
script
);
});
\ No newline at end of file
docs/source/conf.py
View file @
f954d071
...
...
@@ -68,6 +68,8 @@ html_theme_options = {
'use_repository_button'
:
True
,
'use_edit_page_button'
:
True
,
}
html_static_path
=
[
"_static"
]
html_js_files
=
[
"custom.js"
]
# see https://docs.readthedocs.io/en/stable/reference/environment-variables.html # noqa
READTHEDOCS_VERSION_TYPE
=
os
.
environ
.
get
(
'READTHEDOCS_VERSION_TYPE'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment