Skip to content

Add kapa.ai integration to website #6490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@ template:
includes:
in_header: |
<script defer data-domain="ggplot2.tidyverse.org,all.tidyverse.org" src="https://plausible.io/js/plausible.js"></script>
<script async src="https://widget.kapa.ai/kapa-widget.bundle.js"
data-button-hide="true"
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!"
data-modal-ask-ai-input-placeholder="Ask me a question about dplyr, tidyr, or ggplot2."
data-modal-header-bg-color="#f9f9f9"
data-modal-override-open-class="open-kapa-widget"
data-project-color="#365a7a"
data-project-name="ggplot2"
data-modal-title="tidyverse AI ✨"
data-project-logo="https://avatars.githubusercontent.com/u/22032646?s=200&u=235532df5cf8543246812f73db051b793f868807&v=4"
data-user-analytics-fingerprint-enabled="true"
data-bot-protection-mechanism="hcaptcha"
data-website-id="5dcac24a-bd5a-4874-9f5b-3341afddd8c3"
></script>

development:
mode: auto
Expand All @@ -25,7 +39,7 @@ home:
links:
- text: Learn more
href: https://r4ds.had.co.nz/data-visualisation.html
- text: Extensions
- text: Extensions 🧩
href: https://exts.ggplot2.tidyverse.org/gallery/

reference:
Expand Down Expand Up @@ -299,7 +313,13 @@ news:
navbar:
structure:
left: [intro, reference, news, articles, extensions]
right: [search, github, ai]
components:
extensions:
text: Extensions
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

There appears to be sufficient space to write this out in full on my end

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to make the browser a bit narrower

icon: fa-puzzle-piece
aria-label: Extensions
href: https://exts.ggplot2.tidyverse.org/gallery/
ai:
text: Ask AI ✨
href: "#"
class: open-kapa-widget