Skip to content

Commit 3085fc1

Browse files
authored
Add kapa.ai integration to website (#6490)
1 parent 7798431 commit 3085fc1

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
@@ -7,6 +7,20 @@ template:
77
includes:
88
in_header: |
99
<script defer data-domain="ggplot2.tidyverse.org,all.tidyverse.org" src="https://plausible.io/js/plausible.js"></script>
10+
<script async src="https://widget.kapa.ai/kapa-widget.bundle.js"
11+
data-button-hide="true"
12+
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!"
13+
data-modal-ask-ai-input-placeholder="Ask me a question about dplyr, tidyr, or ggplot2."
14+
data-modal-header-bg-color="#f9f9f9"
15+
data-modal-override-open-class="open-kapa-widget"
16+
data-project-color="#365a7a"
17+
data-project-name="ggplot2"
18+
data-modal-title="tidyverse AI ✨"
19+
data-project-logo="https://avatars.githubusercontent.com/u/22032646?s=200&u=235532df5cf8543246812f73db051b793f868807&v=4"
20+
data-user-analytics-fingerprint-enabled="true"
21+
data-bot-protection-mechanism="hcaptcha"
22+
data-website-id="5dcac24a-bd5a-4874-9f5b-3341afddd8c3"
23+
></script>
1024
1125
development:
1226
mode: auto
@@ -25,7 +39,7 @@ home:
2539
links:
2640
- text: Learn more
2741
href: https://r4ds.had.co.nz/data-visualisation.html
28-
- text: Extensions
42+
- text: Extensions 🧩
2943
href: https://exts.ggplot2.tidyverse.org/gallery/
3044

3145
reference:
@@ -300,7 +314,13 @@ news:
300314
navbar:
301315
structure:
302316
left: [intro, reference, news, articles, extensions]
317+
right: [search, github, ai]
303318
components:
304319
extensions:
305-
text: Extensions
320+
icon: fa-puzzle-piece
321+
aria-label: Extensions
306322
href: https://exts.ggplot2.tidyverse.org/gallery/
323+
ai:
324+
text: Ask AI ✨
325+
href: "#"
326+
class: open-kapa-widget

0 commit comments

Comments
 (0)