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
This commit is contained in:
Krzysztof Budzynski
2025-05-05 10:18:01 +08:00
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']