diff --git a/docs/_templates/page.html b/docs/_templates/page.html index ce2f35e208a..4f4712e3e43 100644 --- a/docs/_templates/page.html +++ b/docs/_templates/page.html @@ -224,19 +224,6 @@ {% endblock right_sidebar %} - - - diff --git a/docs/conf.py b/docs/conf.py index e3800587d7f..2f3c284b134 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -196,16 +196,6 @@ def add_server_address(app): js_text = "var server_address = '%s';" % server_address 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 @@ -232,10 +222,4 @@ def setup(app): names=('default',), ), ], - ) - 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) \ No newline at end of file + ) \ No newline at end of file