Browse Source
📝 Add Jina's QA Bot to the docs to help people that want to ask quick questions (#4655)
Co-authored-by: yanlong.wang <yanlong.wang@naiver.org>
pull/4671/head
Sebastián Ramírez
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
32 additions and
0 deletions
-
docs/en/overrides/main.html
|
|
@ -61,3 +61,35 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% endblock %} |
|
|
|
{%- block scripts %} |
|
|
|
{{ super() }} |
|
|
|
<!-- DocsQA integration start --> |
|
|
|
<script src="https://cdn.jsdelivr.net/npm/qabot@0.4"></script> |
|
|
|
<script> |
|
|
|
// This prevents the global search from interfering with qa-bot's internal text input. |
|
|
|
document.addEventListener('DOMContentLoaded', () => { |
|
|
|
document.querySelectorAll('qa-bot').forEach((x) => { |
|
|
|
x.addEventListener('keydown', (event) => { |
|
|
|
event.stopPropagation(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
</script> |
|
|
|
<qa-bot |
|
|
|
server="https://tiangolo-fastapi.docsqa.jina.ai" |
|
|
|
theme="infer" |
|
|
|
title="FastAPI Bot" |
|
|
|
description="FastAPI framework, high performance, easy to learn, fast to code, ready for production" |
|
|
|
style="font-size: 0.8rem" |
|
|
|
> |
|
|
|
<template> |
|
|
|
<dl> |
|
|
|
<dt>You can ask questions about FastAPI. Try:</dt> |
|
|
|
<dd>How do you deploy FastAPI?</dd> |
|
|
|
<dd>What are type hints?</dd> |
|
|
|
<dd>What is OpenAPI?</dd> |
|
|
|
</dl> |
|
|
|
</template> |
|
|
|
</qa-bot> |
|
|
|
<!-- DocsQA integration end --> |
|
|
|
{%- endblock %} |
|
|
|