Skip to content

Commit

Permalink
default deployment to clean out directory (r-lib#1653)
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Apr 30, 2021
1 parent 8c7a6f3 commit b94fe34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# pkgdown (development version)

* pkgdown's deploy_to_branch() now cleans out the website directory by default (`clean = TRUE`). To revert to previous behaviour, call it with `clean = FALSE`. (#1394)

* pkgdown now supports local searching. It is enabled by default because no set-up is needed for users to
search pkgdown websites. (#1629)

Expand Down
2 changes: 1 addition & 1 deletion R/deploy-site.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ deploy_site_github <- function(
#' @export
deploy_to_branch <- function(pkg = ".",
commit_message = construct_commit_message(pkg),
clean = FALSE,
clean = TRUE,
branch = "gh-pages",
remote = "origin",
github_pages = (branch == "gh-pages"),
Expand Down
2 changes: 1 addition & 1 deletion man/deploy_to_branch.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b94fe34

Please sign in to comment.