Skip to content

Commit d5b1d33

Browse files
committed
Update for simplified workflow
1 parent f68d800 commit d5b1d33

File tree

4 files changed

+10
-16
lines changed

4 files changed

+10
-16
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Package: deploydocs
22
Type: Package
33
Title: Deploy to docs server
4-
Version: 1.0
4+
Version: 2.0.0
55
Author: Jeroen Ooms
66
Maintainer: Jeroen Ooms <[email protected]>
77
Description: Deploy pkgdown site to docs server.
88
License: Apache License 2.0
99
Encoding: UTF-8
1010
LazyData: true
11-
RoxygenNote: 7.1.1
11+
RoxygenNote: 7.3.2
1212
Imports:
1313
gert,
1414
gh,

R/deploy.R

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,11 @@
33
#' Push pkgdown site from zip file to docs.ropensci.org
44
#'
55
#' @export
6+
#' @param path directory containing the website to deploy
67
#' @param deploy_org github organization to host docs
78
#' @param buildlog url to build logs
8-
#' @param docsfile name of zip file containing site do deploy
9-
deploy_site <- function(deploy_org = 'ropensci-docs', buildlog = Sys.getenv('BUILDLOG'), docsfile = 'docs.zip'){
10-
# Extract docs zip
11-
docsfile <- normalizePath(docsfile, mustWork = TRUE)
12-
dir.create('deploy')
13-
setwd('deploy')
14-
utils::unzip(docsfile)
15-
setwd(list.files())
16-
17-
# Get metadata
9+
deploy_site <- function(path = 'docs-website', deploy_org = 'ropensci-docs', buildlog = Sys.getenv('BUILDLOG')){
10+
setwd(path)
1811
info <- jsonlite::read_json('info.json')
1912
commit_url <- paste0(info$repo, "/commit/", substring(info$commit$commit,1,7))
2013
commit_message <- sprintf('Render from %s (%s...)\nBuild: %s\n', commit_url,

deploy-docs.Rproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Version: 1.0
2+
ProjectId: 6ca0561f-8019-41ac-97e6-395ced321fc4
23

34
RestoreWorkspace: Default
45
SaveWorkspace: Default

man/deploy_site.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)