diff --git a/docs/conf.py b/docs/conf.py index 553edee5..cec066bf 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -74,7 +74,6 @@ ] 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 @@ -193,20 +192,6 @@ def add_server_address(app): app.add_js_file(None, body=js_text) -def configure_qa_bot_ui(app): - # This sets the server address to - server_address = app.config['server_address'] - js_text = ( - """ - document.addEventListener('DOMContentLoaded', function() { - document.querySelector('qa-bot').setAttribute('server', '%s'); - }); - """ - % server_address - ) - app.add_js_file(None, body=js_text) - - def setup(app): from sphinx.domains.python import PyField from sphinx.util.docfields import Field @@ -233,11 +218,3 @@ def setup(app): ), ], ) - 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)