Skip to content

Commit

Permalink
add favicons to webpage (#5561)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
ben-schwen and jangorecki authored Dec 13, 2023
1 parent f1be897 commit a6009e8
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,9 @@ integration:
script:
- R --version
- *install-deps ## markdown pkg not present in r-pkgdown image
- mkdir -p ./pkgdown/favicon/ && cp .graphics/favicon/* ./pkgdown/favicon/ ## copy favicons
- rm -rf ./vignettes ## r-lib/pkgdown#2383
- Rscript -e 'pkgdown::build_site(override=list(destination="./pkgdown"))'
- Rscript -e 'pkgdown::build_site(override=list(destination="./website"))'
## html manual, vignettes, repos, cran_web, cran_checks
- echo 'source(".ci/ci.R"); source(".ci/publish.R")' >> .Rprofile
## list of available test-* jobs dynamically based on bus/test-* directories
Expand Down Expand Up @@ -359,12 +360,12 @@ integration:
## web/checks/check_flavors.html
- Rscript -e 'check.flavors(names(test.jobs))'
## pkgdown vignettes workaround r-lib/pkgdown#2383
- mkdir -p pkgdown/articles
- cp bus/integration/cran/library/data.table/doc/*.html pkgdown/articles/.
- rm pkgdown/articles/index.html
- mkdir -p website/articles
- cp bus/integration/cran/library/data.table/doc/*.html website/articles/.
- rm website/articles/index.html
## pkgdown merge
- 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")'
- mv pkgdown/* bus/integration/cran/
- 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")'
- mv website/* bus/integration/cran/
## add plausible.io stats
- 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'
<<: *artifacts
Expand Down
Binary file added .graphics/favicon/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .graphics/favicon/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .graphics/favicon/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .graphics/favicon/apple-touch-icon-60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .graphics/favicon/apple-touch-icon-76x76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .graphics/favicon/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .graphics/favicon/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .graphics/favicon/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .graphics/favicon/favicon.ico
Binary file not shown.

0 comments on commit a6009e8

Please sign in to comment.