Skip to content

Commit 2195b2c

Browse files
committed
Merge branch 'feature/disabe_chatbot_for_release_branches' into 'master'
change(docs): Enable Documentation Chatbot only for the master branch Closes IDF-12686 See merge request espressif/esp-idf!38827
2 parents aaebc37 + 70d565d commit 2195b2c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docs/en/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,7 @@
2929

3030
html_zip = f'esp-idf-{language}-{release}' # noqa: F405
3131

32-
html_js_files = ['js/chatbot_widget_en.js']
32+
# The chatbot is able to answer only about the latest documentation.
33+
# Enable Documentation Chatbot widget only for the master branch.
34+
if release == 'latest': # noqa: F405
35+
html_js_files = ['js/chatbot_widget_en.js']

docs/zh_CN/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,7 @@
2929

3030
html_zip = f'esp-idf-{language}-{release}' # noqa: F405
3131

32-
html_js_files = ['js/chatbot_widget_cn.js']
32+
# The chatbot is able to answer only about the latest documentation.
33+
# Enable Documentation Chatbot widget only for the master branch.
34+
if release == 'latest': # noqa: F405
35+
html_js_files = ['js/chatbot_widget_cn.js']

0 commit comments

Comments
 (0)