Skip to content

Commit a6009e8

Browse files
add favicons to webpage (#5561)
* add favicons * update CI * update files * update CI * adjust paths * tidy comment * Update .gitlab-ci.yml Co-authored-by: Jan Gorecki <[email protected]> --------- Co-authored-by: Jan Gorecki <[email protected]>
1 parent f1be897 commit a6009e8

10 files changed

+7
-6
lines changed

.gitlab-ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,9 @@ integration:
297297
script:
298298
- R --version
299299
- *install-deps ## markdown pkg not present in r-pkgdown image
300+
- mkdir -p ./pkgdown/favicon/ && cp .graphics/favicon/* ./pkgdown/favicon/ ## copy favicons
300301
- rm -rf ./vignettes ## r-lib/pkgdown#2383
301-
- Rscript -e 'pkgdown::build_site(override=list(destination="./pkgdown"))'
302+
- Rscript -e 'pkgdown::build_site(override=list(destination="./website"))'
302303
## html manual, vignettes, repos, cran_web, cran_checks
303304
- echo 'source(".ci/ci.R"); source(".ci/publish.R")' >> .Rprofile
304305
## list of available test-* jobs dynamically based on bus/test-* directories
@@ -359,12 +360,12 @@ integration:
359360
## web/checks/check_flavors.html
360361
- Rscript -e 'check.flavors(names(test.jobs))'
361362
## pkgdown vignettes workaround r-lib/pkgdown#2383
362-
- mkdir -p pkgdown/articles
363-
- cp bus/integration/cran/library/data.table/doc/*.html pkgdown/articles/.
364-
- rm pkgdown/articles/index.html
363+
- mkdir -p website/articles
364+
- cp bus/integration/cran/library/data.table/doc/*.html website/articles/.
365+
- rm website/articles/index.html
365366
## pkgdown merge
366-
- Rscript -e 'common_files<-function(path1, path2) intersect(list.files(path1, all.files=TRUE, no..=TRUE), list.files(path2, all.files=TRUE, no..=TRUE)); msg = if (length(f<-common_files("pkgdown","bus/integration/cran"))) paste(c("Following artifacts will be overwritten by pkgdown artifacts:", paste0(" ", f)), collapse="\n") else "No overlapping files from pkgdown artifacts"; message(msg); q("no")'
367-
- mv pkgdown/* bus/integration/cran/
367+
- Rscript -e 'common_files<-function(path1, path2) intersect(list.files(path1, all.files=TRUE, no..=TRUE), list.files(path2, all.files=TRUE, no..=TRUE)); msg = if (length(f<-common_files("website","bus/integration/cran"))) paste(c("Following artifacts will be overwritten by pkgdown artifacts:", paste0(" ", f)), collapse="\n") else "No overlapping files from pkgdown artifacts"; message(msg); q("no")'
368+
- mv website/* bus/integration/cran/
368369
## add plausible.io stats
369370
- find bus/integration/cran -type f -iname "*.html" | xargs sed -i 's!<head>!<head><script defer data-domain="rdatatable.gitlab.io/data.table" src="https://plausible.io/js/script.js"></script>!g'
370371
<<: *artifacts
12.5 KB
Loading
17.4 KB
Loading
22.8 KB
Loading
4.94 KB
Loading
6.51 KB
Loading
22.8 KB
Loading
1.19 KB
Loading
2.31 KB
Loading

.graphics/favicon/favicon.ico

14.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)