forked from gadenbuie/xaringanthemer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.R
29 lines (23 loc) · 991 Bytes
/
make.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
setwd(here::here("inst/scripts"))
message("Building theme functions")
source("generate_theme_functions.R")
setwd(here::here())
message("Writing documentation")
devtools::document()
setwd(here::here("vignettes"))
message("Rendering vignettes/template-variables.Rmd for GitHub")
rmarkdown::render("template-variables.Rmd", output_format = rmarkdown::github_document(), quiet = TRUE)
unlink("template-variables.html")
message("Rendering vignettes/css-help.Rmd for GitHub")
rmarkdown::render("css-help.Rmd", output_format = rmarkdown::github_document(), quiet = TRUE)
unlink("css-help.html")
setwd(here::here())
message("Rendering README.Rmd for GitHub")
rmarkdown::render("README.Rmd", quiet = TRUE)
unlink("README.html")
pkgdown::build_site()
message("Copying images to pkgdown docs/")
file.copy(here::here("vignettes/images/"), here::here("docs/articles/"),
recursive = TRUE)
message("Building and Installing Package with Vignettes")
devtools::install(build_vignettes = TRUE)