Skip to content

docs: add Plausible analytics to all doc sites#185

Merged
cpsievert merged 3 commits intomainfrom
elnelson575/add-plausible-analytics
Apr 2, 2026
Merged

docs: add Plausible analytics to all doc sites#185
cpsievert merged 3 commits intomainfrom
elnelson575/add-plausible-analytics

Conversation

@elnelson575
Copy link
Copy Markdown
Contributor

@elnelson575 elnelson575 commented Mar 27, 2026

Summary

  • Adds Plausible analytics snippet to the root landing page (docs/index.html) and 404 page (docs/404.html)
  • Adds Plausible analytics to the Python docs via Quarto include-in-header
  • Adds Plausible analytics to the R docs via pkgdown template: includes: in_header
  • Pinned griffe version

Test plan

  • Verify the snippet appears in the <head> of the root landing page
  • Verify the snippet appears in the <head> of the 404 page
  • Build Python docs (make py-docs-render) and verify the snippet appears in rendered HTML
  • Build R docs (cd pkg-r && Rscript -e "pkgdown::build_site()") and verify the snippet appears in rendered HTML

elnelson575 and others added 3 commits March 26, 2026 20:31
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
griffe 2.0 removed the `allow_section_blank_line` kwarg from
`parse_numpy()`, which breaks quartodoc 0.11.1.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
pkgdown's `in_header` expects inline HTML, not a file path. The
previous approach rendered the file path as literal text in the page.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@elnelson575 elnelson575 marked this pull request as ready for review March 31, 2026 21:25
@elnelson575 elnelson575 requested a review from gadenbuie March 31, 2026 21:25
@cpsievert
Copy link
Copy Markdown
Collaborator

Thanks!

@cpsievert cpsievert merged commit cebbe3b into main Apr 2, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants