Skip to content

Commit

Permalink
try without the hack
Browse files Browse the repository at this point in the history
  • Loading branch information
jangorecki committed Oct 18, 2024
1 parent b0453cb commit bca5458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pkgup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
ls
R CMD INSTALL $(ls -1t pkgup_*.tar.gz | head -n 1) ## seems to be required
Rscript -e 'invisible(file.copy("vignettes", "pkgup", recursive=TRUE))'
Rscript -e 'reorder_input2 = function(x) {i = is_index(x); index = x[i][which.min(nchar(x[i]))]; c(index, rev(setdiff(x, index)))}; environment(reorder_input2) <- asNamespace("litedown"); assignInNamespace("reorder_input", reorder_input2, ns="litedown"); litedown::fuse_site("pkgup")' ## hacking litedown to rev order so ./vignettes/*.html are generated before their index ./vignettes.html
mkdir -p public
Rscript -e 'litedown::fuse_site("pkgup")'
mkdir -p public
find pkgup -name '*.html' -print0 | cpio -pvdmB --null public
mv public/pkgup/* public
rm -r public/pkgup
Expand Down

0 comments on commit bca5458

Please sign in to comment.