Skip to contents

The functions creates a pkgdown-netlify-preview.yaml action in the .github/workflows directory. The action follows the standard pkgdown publishing to gh-pages in the event of a merge into main branch but can also be set up to publish internal PR previews to Netlify.

Usage

use_hubdev_pkgdown_action(remove_std = TRUE, ref = NULL, overwrite = FALSE)

Arguments

remove_std

Logical. Whether to remove the standard pkgdown action if it exists.

ref

Tag, branch or commit SHA of hubverse-org/hubverse-developer-actions to download from. Defaults to the latest release.

overwrite

Logical. Whether to replace an existing file without asking. When FALSE, an interactive session asks first and a non-interactive session leaves the existing file unchanged.

Details

To activate Netlify Previews, you must:

See pkgdown docs section on PR previews for more details.