Skip to content

Commit

Permalink
rename docs to pkgup
Browse files Browse the repository at this point in the history
  • Loading branch information
jangorecki committed Oct 17, 2024
1 parent d6b3e07 commit 39eafcc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pkgup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ jobs:
if: github.ref == 'refs/heads/litedown'
run: |
R CMD INSTALL $(ls -1t pkgup_*.tar.gz | head -n 1) ## seems to be required
ls vignettes/*.Rmd
ls vignettes/*.html
Rscript -e 'litedown::fuse_site("docs")'
mkdir -p public
find docs -name '*.html' -print0 | cpio -pvdmB --null public
find pkgup -name '*.html' -print0 | cpio -pvdmB --null public
ls -R public
mv public/docs/* public
rm -r public/docs
mv public/pkgup/* public
rm -r public/pkgup
- name: repo
if: github.ref == 'refs/heads/litedown'
run: |
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 4 additions & 1 deletion docs/vignettes.Rmd → pkgup/vignettes.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ if (tail(strsplit(getwd(), "/", fixed=TRUE)[[1L]], 1L) == "docs") {
}
invisible(file.copy("../vignettes", ".", recursive=TRUE))
rmd = list.files("./vignettes", "*.Rmd", full.names=TRUE)
html = list.files("./vignettes", "*.html", full.names=TRUE)
if (length(html) != length(rmd))
stop("length(html) != length(rmd)")
if (!length(rmd)) {
cat("no vignettes\n")
} else {
Expand All @@ -23,7 +26,7 @@ if (!length(rmd)) {
}
sapply(f, title1)
}
html = list.files("./vignettes", "*.html", full.names=TRUE)
unlink(rmd)
lapply(html, function(f) cat(sprintf("[%s](%s)\n", title(rmd), f))) |> invisible()
}
```

0 comments on commit 39eafcc

Please sign in to comment.