Skip to content

Commit b3567ce

Browse files
committed
feat: update chatbot widget
1 parent 76db88e commit b3567ce

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

docs/_static/js/chatbot_widget.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
document.addEventListener("DOMContentLoaded", function () {
32
var script = document.createElement("script");
43
script.src = "https://widget.kapa.ai/kapa-widget.bundle.js";
@@ -18,10 +17,11 @@ document.addEventListener("DOMContentLoaded", function () {
1817
script.setAttribute("data-button-image-width", "100%");
1918
script.setAttribute("data-button-padding", "0");
2019
script.setAttribute("data-button-hover-animation-enabled", "false");
21-
script.setAttribute("data-button-position-top", "10px");
22-
script.setAttribute("data-button-position-left", "1048px");
20+
script.setAttribute("data-button-position-top", "50px");
21+
script.setAttribute("data-button-position-left", "305px");
2322
script.setAttribute("data-button-box-shadow", "0px 6px 12px 1px rgba(0,0,0,0.16)");
2423
script.setAttribute("data-modal-override-open-class", "test-ai");
24+
script.setAttribute("data-user-analytics-fingerprint-enabled", "true");
2525
script.setAttribute("data-modal-disclaimer", "This custom large language model (LLM), trained on official documentation from espressif.com, is designed to provide technical support and answers related to Espressif’s products and services. Give it a try, share your thoughts, and let us know your feedback—we truly appreciate it! \n\n**Note**: AI-generated information may be incomplete or inaccurate. Always verify critical information with official sources.");
2626
script.setAttribute("data-modal-example-questions", "How to add button to my project?,Does ESP32-S3 support USB Camera?");
2727
script.async = true;

docs/conf_common.py

-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
# relative to this directory. They are copied after the builtin static files,
3636
# so a file named "default.css" will overwrite the builtin "default.css".
3737
html_static_path = ['../_static']
38-
html_js_files = ['js/chatbot_widget.js']
39-
html_css_files = ['js/chatbot_widget.css']
4038

4139
versions_url = './_static/js/generic_version.js'
4240

docs/en/conf.py

+3
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@
3030
('index', 'ReadtheDocsTemplate.tex', u'ESP-IoT-Solution',
3131
u'2016 - {}, Espressif Systems (Shanghai) CO., LTD'.format(current_year), 'manual'),
3232
]
33+
34+
html_js_files = ['js/chatbot_widget.js']
35+
html_css_files = ['js/chatbot_widget.css']

0 commit comments

Comments
 (0)