Skip to content

Commit 9783be3

Browse files
authored
Add kapa.ai integration (#1600)
1 parent 1c97084 commit 9783be3

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

_pkgdown.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,38 @@ home:
66
href: https://r4ds.hadley.nz/data-tidy
77

88
navbar:
9+
structure:
10+
right: [search, github, ai]
911
components:
1012
home: ~
1113
intro:
1214
text: Tidy data
1315
href: articles/tidy-data.html
16+
ai:
17+
text: Ask AI ✨
18+
href: "#"
19+
class: open-kapa-widget
1420

1521
template:
1622
bootstrap: 5
1723
package: tidytemplate
1824
includes:
19-
in_header: |
20-
<script defer data-domain="tidyr.tidyverse.org,all.tidyverse.org" src="https://plausible.io/js/plausible.js"></script>
25+
in_header: |
26+
<script defer data-domain="tidyr.tidyverse.org,all.tidyverse.org" src="https://plausible.io/js/plausible.js"></script>
27+
<script async src="https://widget.kapa.ai/kapa-widget.bundle.js"
28+
data-button-hide="true"
29+
data-modal-disclaimer="This is a custom LLM for answering questions about dplyr, tidyr, and ggplot2. Answers are based on the contents of the documentation. Rate the answers to let us know what you think!"
30+
data-modal-ask-ai-input-placeholder="Ask me a question about dplyr, tidyr, or ggplot2."
31+
data-modal-header-bg-color="#f9f9f9"
32+
data-modal-override-open-class="open-kapa-widget"
33+
data-project-color="#365a7a"
34+
data-project-name="tidyr"
35+
data-modal-title="tidyverse AI ✨"
36+
data-project-logo="https://avatars.githubusercontent.com/u/22032646?s=200&u=235532df5cf8543246812f73db051b793f868807&v=4"
37+
data-user-analytics-fingerprint-enabled="true"
38+
data-bot-protection-mechanism="hcaptcha"
39+
data-website-id="34242a59-6aeb-4105-9065-86e16bf56a0f"
40+
></script>
2141
development:
2242
mode: auto
2343

0 commit comments

Comments
 (0)