change(docs): Enable Documentation Chatbot only for the master branch

This commit is contained in:
Krzysztof
2025-04-29 15:24:16 +08:00
parent 4ea1facb42
commit 70d565ddbb
2 changed files with 8 additions and 2 deletions

View File

@@ -29,4 +29,7 @@ language = 'en'
html_zip = f'esp-idf-{language}-{release}' # noqa: F405
html_js_files = ['js/chatbot_widget_en.js']
# The chatbot is able to answer only about the latest documentation.
# Enable Documentation Chatbot widget only for the master branch.
if release == 'latest': # noqa: F405
html_js_files = ['js/chatbot_widget_en.js']

View File

@@ -29,4 +29,7 @@ language = 'zh_CN'
html_zip = f'esp-idf-{language}-{release}' # noqa: F405
html_js_files = ['js/chatbot_widget_cn.js']
# The chatbot is able to answer only about the latest documentation.
# Enable Documentation Chatbot widget only for the master branch.
if release == 'latest': # noqa: F405
html_js_files = ['js/chatbot_widget_cn.js']