Skip to content

Commit

Permalink
chore: remove docsqa (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiniuYu authored Mar 21, 2023
1 parent cce3b05 commit aa07d25
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
]
html_js_files = [
'https://cdn.jsdelivr.net/npm/vue@2/dist/vue.min.js',
'https://cdn.jsdelivr.net/npm/[email protected]',
]
htmlhelp_basename = slug
html_show_sourcelink = False
Expand Down Expand Up @@ -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 <qa-bot>
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
Expand All @@ -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)

0 comments on commit aa07d25

Please sign in to comment.