Skip to content

Commit 39eafcc

Browse files
committed
rename docs to pkgup
1 parent d6b3e07 commit 39eafcc

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

.github/workflows/pkgup.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ jobs:
4343
if: github.ref == 'refs/heads/litedown'
4444
run: |
4545
R CMD INSTALL $(ls -1t pkgup_*.tar.gz | head -n 1) ## seems to be required
46+
ls vignettes/*.Rmd
47+
ls vignettes/*.html
4648
Rscript -e 'litedown::fuse_site("docs")'
4749
mkdir -p public
48-
find docs -name '*.html' -print0 | cpio -pvdmB --null public
50+
find pkgup -name '*.html' -print0 | cpio -pvdmB --null public
4951
ls -R public
50-
mv public/docs/* public
51-
rm -r public/docs
52+
mv public/pkgup/* public
53+
rm -r public/pkgup
5254
- name: repo
5355
if: github.ref == 'refs/heads/litedown'
5456
run: |
File renamed without changes.

docs/index.Rmd pkgup/index.Rmd

File renamed without changes.

docs/manual.Rmd pkgup/manual.Rmd

File renamed without changes.

docs/news.Rmd pkgup/news.Rmd

File renamed without changes.

docs/vignettes.Rmd pkgup/vignettes.Rmd

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ if (tail(strsplit(getwd(), "/", fixed=TRUE)[[1L]], 1L) == "docs") {
66
}
77
invisible(file.copy("../vignettes", ".", recursive=TRUE))
88
rmd = list.files("./vignettes", "*.Rmd", full.names=TRUE)
9+
html = list.files("./vignettes", "*.html", full.names=TRUE)
10+
if (length(html) != length(rmd))
11+
stop("length(html) != length(rmd)")
912
if (!length(rmd)) {
1013
cat("no vignettes\n")
1114
} else {
@@ -23,7 +26,7 @@ if (!length(rmd)) {
2326
}
2427
sapply(f, title1)
2528
}
26-
html = list.files("./vignettes", "*.html", full.names=TRUE)
29+
unlink(rmd)
2730
lapply(html, function(f) cat(sprintf("[%s](%s)\n", title(rmd), f))) |> invisible()
2831
}
2932
```

0 commit comments

Comments
 (0)