Skip to content

Commit 14c2f68

Browse files
committed
Backport kapa.ai changes
1 parent 8b27990 commit 14c2f68

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

_pkgdown.yml

Lines changed: 28 additions & 4 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:
@@ -68,6 +82,8 @@ reference:
6882
- stat_summary_bin
6983
- stat_unique
7084
- stat_sf_coordinates
85+
- stat_manual
86+
- stat_connect
7187
- after_stat
7288

7389
- subtitle: Position adjustment
@@ -90,7 +106,7 @@ reference:
90106
- annotation_logticks
91107
- annotation_map
92108
- annotation_raster
93-
- borders
109+
- annotation_borders
94110

95111
- title: Aesthetics
96112
desc: >
@@ -164,14 +180,15 @@ reference:
164180
The coordinate system determines how the `x` and `y` aesthetics combine
165181
to position elements in the plot. The default coordinate system is
166182
Cartesian (`coord_cartesian()`), which can be tweaked with `coord_map()`,
167-
`coord_fixed()`, `coord_flip()`, and `coord_trans()`, or completely
183+
`coord_fixed()`, `coord_flip()`, and `coord_transform()`, or completely
168184
replaced with `coord_polar()`.
169185
contents:
170186
- coord_cartesian
171187
- coord_fixed
172188
- coord_flip
173189
- coord_map
174190
- coord_polar
191+
- coord_transform
175192
- coord_trans
176193

177194
- title: Themes
@@ -185,6 +202,7 @@ reference:
185202
- theme
186203
- theme_bw
187204
- theme_update
205+
- subtheme
188206
- element_line
189207
- margin
190208

@@ -296,7 +314,13 @@ news:
296314
navbar:
297315
structure:
298316
left: [intro, reference, news, articles, extensions]
317+
right: [search, github, ai]
299318
components:
300319
extensions:
301-
text: Extensions
320+
icon: fa-puzzle-piece
321+
aria-label: Extensions
302322
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)