Skip to content

Commit 784aa6f

Browse files
authored
GH-45665: [Docs] Add kapa AI bot to the docs (#45667)
### Rationale for this change Add kapa AI bot to the docs to make it easier to find answers to questions ### What changes are included in this PR? Config for enabling bot ### Are these changes tested? Manually, yep ### Are there any user-facing changes? Yep, adds widget to header in docs pages * GitHub Issue: #45665 Authored-by: Nic Crane <thisisnic@gmail.com> Signed-off-by: Nic Crane <thisisnic@gmail.com>
1 parent c58ec9c commit 784aa6f

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<div class="kapa-ai-bot">
2+
<script
3+
async
4+
src="https://widget.kapa.ai/kapa-widget.bundle.js"
5+
data-website-id="9db461d5-ac77-4b3f-a5c5-75efa78339d2"
6+
data-project-name="Apache Arrow"
7+
data-project-color="#000000"
8+
data-project-logo="https://arrow.apache.org/img/arrow-logo_chevrons_white-txt_black-bg.png"
9+
data-modal-disclaimer="This is a custom LLM with access to all [Arrow documentation](https://arrow.apache.org/docs/)."
10+
data-consent-required="true"
11+
data-consent-screen-disclaimer="By clicking &quot;I agree, let's chat&quot;, you consent to the use of the AI assistant in accordance with kapa.ai's [Privacy Policy](https://www.kapa.ai/content/privacy-policy). This service uses reCAPTCHA, which requires your consent to Google's [Privacy Policy](https://policies.google.com/privacy) and [Terms of Service](https://policies.google.com/terms). By proceeding, you explicitly agree to both kapa.ai's and Google's privacy policies."
12+
></script>
13+
14+
</div>
15+
16+

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@
344344
"header_links_before_dropdown": 2,
345345
"header_dropdown_text": "Implementations",
346346
"navbar_align": "left",
347-
"navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"],
347+
"navbar_end": ["kapa-ai-bot.html", "version-switcher", "theme-switcher", "navbar-icon-links"],
348348
"icon_links": [
349349
{
350350
"name": "GitHub",

r/_pkgdown.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,19 @@ template:
4343
})();
4444
</script>
4545
<!-- End Matomo Code -->
46+
<!-- Kapa AI -->
47+
<script
48+
async
49+
src="https://widget.kapa.ai/kapa-widget.bundle.js"
50+
data-website-id="9db461d5-ac77-4b3f-a5c5-75efa78339d2"
51+
data-project-name="Apache Arrow"
52+
data-project-color="#000000"
53+
data-project-logo="https://arrow.apache.org/img/arrow-logo_chevrons_white-txt_black-bg.png"
54+
data-modal-disclaimer="This is a custom LLM with access to all of [Arrow documentation](https://arrow.apache.org/docs/). If you want an R-specific answer, please mention this in your question."
55+
data-consent-required="true"
56+
data-consent-screen-disclaimer="By clicking &quot;I agree, let's chat&quot;, you consent to the use of the AI assistant in accordance with kapa.ai's [Privacy Policy](https://www.kapa.ai/content/privacy-policy). This service uses reCAPTCHA, which requires your consent to Google's [Privacy Policy](https://policies.google.com/privacy) and [Terms of Service](https://policies.google.com/terms). By proceeding, you explicitly agree to both kapa.ai's and Google's privacy policies."
57+
></script>
58+
<!-- End Kapa AI -->
4659
opengraph:
4760
image:
4861
src: https://arrow.apache.org/img/arrow-logo_horizontal_black-txt_white-bg.png

0 commit comments

Comments
 (0)