]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🔥 Remove Jina AI QA Bot from the docs (#11268)
authorNan Wang <nan.wang@jina.ai>
Wed, 13 Mar 2024 19:21:21 +0000 (03:21 +0800)
committerGitHub <noreply@github.com>
Wed, 13 Mar 2024 19:21:21 +0000 (20:21 +0100)
docs/en/overrides/main.html

index eaab6b630792bd514b1ac42decafe14580d6f852..bc863d61a6e47c485c4e50745b3675d6056382c4 100644 (file)
   </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 %}