Skip to content

Commit

Permalink
Try mimicking local install again.
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-ebs-ext committed Feb 6, 2025
1 parent c198123 commit 3c787da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ jobs:
# Render site
render_site <- function(){
if(file.exists('vignettes/qc.Rmd')){
pkgdown::build_site(new_process = FALSE)
#pkgdown::build_site(new_process = FALSE) # `new_process` because otherwise errors go unlogged
pkgdown::init_site()
devtools::load_all() # try to mimic the local installation that pkgdown::build_site does but pkgdown::build_article does not
pkgdown::build_article(name = 'qc')
file.rename(from = 'vignettes/qc.Rmd', to = 'vignettes/_qc.Rmd')
# This last step is not necessary now but, if we ever want to combine actions,
# it's better to restore the original name of the file.
Expand Down

0 comments on commit 3c787da

Please sign in to comment.