Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 1.99 KB

README.md

File metadata and controls

66 lines (46 loc) · 1.99 KB

gitdevr

Lifecycle: experimental .github/workflows/check-simple.yaml

Overview

gitdevr provides a custom pkgdown template based on the GitDev skin provided with my Jekyll theme chulapa.

See a preview of the template in https://dieghernan.github.io/gitdevr/

Installation

You can install the developing version of gitdevr with:

devtools::install_github("dieghernan/gitdevr")

Alternatively, you can install gitdevr using the r-universe:

# Install gitdevr in R:
install.packages("gitdevr", repos = c(
  "https://dieghernan.r-universe.dev",
  "https://cloud.r-project.org"
))

Usage

After the successful installation, if you already have your pkgdown setup ready, you only need to specify the template parameter as follow. Then, as before, you can build your site using pkgdown::build_site().

template:
  bootstrap: 5
  package: gitdevr

Keep in mind that you should NOT use default_assets: false when you change the default template. gitdevr relies on some of the pkgdown assets and templates.

It is recommended to add the following line to your DESCRIPTION:

Config/Needs/website: dieghernan/gitdevr

By doing so, when using r-lib actions for deploying your site, the github action would install the package for you automatically.