From ed1b92d1896cc0c12733b51bd1bd83040676f505 Mon Sep 17 00:00:00 2001 From: Sha Zhou Date: Mon, 27 Jun 2022 11:45:13 +0800 Subject: [PATCH] feat(docs): add qabot (#759) --- docs/_templates/page.html | 13 +++++++++++++ docs/conf.py | 13 +++++++------ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/docs/_templates/page.html b/docs/_templates/page.html index eca396d22..e9597142b 100644 --- a/docs/_templates/page.html +++ b/docs/_templates/page.html @@ -224,6 +224,19 @@ {% endblock right_sidebar %} + + + diff --git a/docs/conf.py b/docs/conf.py index 6f895606c..07a590588 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -74,6 +74,7 @@ ] html_js_files = [ 'https://cdn.jsdelivr.net/npm/vue@2/dist/vue.min.js', + 'https://cdn.jsdelivr.net/npm/qabot@0.4', ] htmlhelp_basename = slug html_show_sourcelink = False @@ -231,9 +232,9 @@ def setup(app): ), ], ) - # app.add_config_value( - # name='server_address', - # default=os.getenv('JINA_DOCSBOT_SERVER', 'https://jina-ai-docarray.docsqa.jina.ai'), - # rebuild='', - # ) - # app.connect('builder-inited', configure_qa_bot_ui) + app.add_config_value( + name='server_address', + default=os.getenv('JINA_DOCSBOT_SERVER', 'https://jina-ai-clip-as-service.docsqa.jina.ai'), + rebuild='', + ) + app.connect('builder-inited', configure_qa_bot_ui)