Skip to content

Stop tracking the built site; adopt the man/figures convention#96

Merged
kassambara merged 2 commits into
masterfrom
docs/pkgdown-site
Jul 9, 2026
Merged

Stop tracking the built site; adopt the man/figures convention#96
kassambara merged 2 commits into
masterfrom
docs/pkgdown-site

Conversation

@kassambara

Copy link
Copy Markdown
Owner

Adopts the standard tidyverse/ggpubr documentation setup:

  • Untrack docs/ (the generated pkgdown site) and gitignore it, so the built site is no longer committed and can't go stale in git. It is rebuilt locally / deployed to the package site.
  • README figures move tools/man/figures/ (via fig.path). pkgdown can only serve images from man/figures or vignettes, so the site home page (built from README.md) was showing broken images; now they resolve. This path also works on GitHub.
  • Set the site url in _pkgdown.yml and align the DESCRIPTION URL with the package site + repository, so pkgdown::check_pkgdown() passes (it now reports no problems).

Docs/infra only — no code change. R CMD check --as-cran clean (no warnings/errors); pkgdown::check_pkgdown() reports no problems and the site builds with the home-page images resolving.

Untrack docs/ (the generated pkgdown site) and add it to .gitignore so the built
site is no longer committed. Move the README figures from tools/ to man/figures/
(fig.path) so pkgdown serves them on the site home page, set the site url in
_pkgdown.yml, and point the DESCRIPTION URL at the package site and repository.
The default fig.align = "center" stamps each figure display:block, so the paired
comparison plots (default vs circle, lower vs upper triangle) stacked instead of
sitting side by side despite out.width = "48%". Override fig.align = "default" on
just those two chunks so the 48%-wide images flow inline; single-plot examples
keep the centered layout.
@kassambara kassambara merged commit 83a266a into master Jul 9, 2026
5 checks passed
@kassambara kassambara deleted the docs/pkgdown-site branch July 9, 2026 12:59
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.

1 participant