Skip to content

Commit e013840

Browse files
committed
Use kapa.ai on the website
Needs dev version of pkgdown, which I'll probably submit to CRAN tomorrow.
1 parent 86b32ce commit e013840

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

_pkgdown.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ 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 ggplot2. Answers are based on the contents of the documentation. Rate the answers to let us know what you think!"
13+
data-modal-header-bg-color="#f9f9f9"
14+
data-modal-override-open-class="open-kapa-widget"
15+
data-project-color="#365a7a"
16+
data-project-name="ggplot2"
17+
data-modal-title="tidyverse AI ✨"
18+
data-project-logo="https://avatars.githubusercontent.com/u/22032646?s=200&u=235532df5cf8543246812f73db051b793f868807&v=4"
19+
data-user-analytics-fingerprint-enabled="true"
20+
data-bot-protection-mechanism="hcaptcha"
21+
data-website-id="5dcac24a-bd5a-4874-9f5b-3341afddd8c3"
22+
></script>
1023
1124
development:
1225
mode: auto
@@ -25,7 +38,7 @@ home:
2538
links:
2639
- text: Learn more
2740
href: https://r4ds.had.co.nz/data-visualisation.html
28-
- text: Extensions
41+
- text: Extensions 🧩
2942
href: https://exts.ggplot2.tidyverse.org/gallery/
3043

3144
reference:
@@ -299,7 +312,13 @@ news:
299312
navbar:
300313
structure:
301314
left: [intro, reference, news, articles, extensions]
315+
right: [search, github, ai]
302316
components:
303317
extensions:
304-
text: Extensions
318+
icon: fa-puzzle-piece
319+
aria-label: Extensions
305320
href: https://exts.ggplot2.tidyverse.org/gallery/
321+
ai:
322+
text: Ask AI ✨
323+
href: "#"
324+
class: open-kapa-widget

0 commit comments

Comments
 (0)