pkgdown.offline provides support for offline builds of pkgdown websites, especially for pkgdown versions >= 2.1.0.
It works by bundling cached frontend dependencies from different pkgdown versions and implementing drop-in replacements for key functions. This allows you to build documentation websites in development workflows or CI/CD pipelines without internet access.
You can install the development version of pkgdown.offline from GitHub with:
# install.packages("remotes")
::install_github("nanxstats/pkgdown.offline") remotes
Use pkgdown.offline::build_site()
and
pkgdown.offline::init_site()
to replace the original
pkgdown::build_site()
or pkgdown::init_site()
calls in your original development or CI/CD workflow.
pkgdown.offline is an independent third-party solution not endorsed by, affiliated with, or supported by the authors of pkgdown. It is developed solely as a community contribution to address a specific use case and is not an official extension of the pkgdown project.
We welcome contributions to pkgdown.offline. Please read the Contributing Guidelines first.
All interactions within pkgdown.offline repositories and issue trackers should adhere to the Contributor Code of Conduct.