Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

add Jina AI QAbot to Kornia documentation (#1628)

Joan Fontanals4b82e07d67c1
diff --git a/docs/source/_templates/page.html b/docs/source/_templates/page.html
new file mode 100644
index 000000000..54b80920e
--- /dev/null
+++ b/docs/source/_templates/page.html
@@ -0,0 +1,31 @@
+{% extends "!page.html" %}
+{% block scripts %}
+ {{ super() }}
+ <!-- DocsQA integration start -->
+ <script src="https://jina-docqa-ui.netlify.app/dist/qabot.js"></script>
+ <script>
+ // This prevents the global search interfere with qa-bot internal text input.
+ document.addEventListener('DOMContentLoaded', () => {
+ document.querySelectorAll('qa-bot').forEach((x) => {
+ x.addEventListener('keydown', (event) => {
+ event.stopPropagation();
+ });
+ });
+ });
+ </script>
+ <qa-bot
+ token="_LX-ltnplMGK5qrT05qV-auHldTT_babktyfuL2Gn8aP9_eDldufuLiA"
+ title="Kornia"
+ description="State-of-the-art and curated Computer Vision algorithms for AI"
+ avatar-src="https://github.com/kornia/data/raw/main/pixie_QAbot.png">
+ <template>
+ <dl>
+ <dt>You can ask questions about Kornia. Try</dt>
+ <dd>What is Kornia?</dd>
+ <dd>How can i find correspondences between two images?</dd>
+ <dd>How to do image augmentation?</dd>
+ </dl>
+ </template>
+ </qa-bot>
+ <!-- DocsQA integration end -->
+{% endblock %}