-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ef22f4
commit e534a10
Showing
527 changed files
with
41,546 additions
and
7,436 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,15 @@ on: | |
push: | ||
branches: | ||
- master | ||
- quarto | ||
env: | ||
REGISTRY: ghcr.io | ||
ORG: nbisweden | ||
IMAGE: workshop-base:latest | ||
IMAGE: workshop-ngsintro:latest | ||
|
||
jobs: | ||
rmd-render-job: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-21.04 | ||
steps: | ||
- name: Set time zone | ||
uses: szenius/[email protected] | ||
|
@@ -19,7 +20,7 @@ jobs: | |
timezoneMacos: "Europe/Stockholm" | ||
timezoneWindows: "W. Europe Standard Time" | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: Pull image | ||
run: docker pull ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }} | ||
- name: Define variables | ||
|
@@ -30,7 +31,7 @@ jobs: | |
echo "REPO=$(basename ${GITHUB_REPOSITORY})" >> $GITHUB_ENV | ||
- name: Check docker and variables | ||
run: | | ||
docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) -v ${PWD}:/rmd ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }} Rscript -e "print('R in docker works!')" | ||
docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) -v ${PWD}:/qmd ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }} Rscript -e "print('R in docker works!')" | ||
echo "GITHUB_ACTOR: ${GITHUB_ACTOR}" | ||
echo "GITHUB_REPOSITORY: ${GITHUB_REPOSITORY}" | ||
echo "REPO: ${REPO}" | ||
|
@@ -52,11 +53,11 @@ jobs: | |
# Render website | ||
echo "Rendering Rmd files ..." | ||
docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) -v ${PWD}:/rmd ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }} | ||
docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) -v ${PWD}:/qmd ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }} | ||
# Generate PDFs | ||
cd ${PATH_EXPORT} | ||
echo "Generating PDFs ..." | ||
docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) -v ${PWD}:/rmd ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }} Rscript -e "l <- list.files('.',pattern='slide.+html');if(length(l)!=0) {for(i in 1:length(l)) pagedown::chrome_print(l[i],extra_args=c('--no-sandbox','--disable-dev-shm-usage','--disable-gpu'))};" | ||
docker run --rm -u $(id -u ${USER}):$(id -g ${USER}) -v ${PWD}:/qmd ${{ env.REGISTRY }}/${{ env.ORG }}/${{ env.IMAGE }} Rscript -e "l <- list.files('.',pattern='slide.+html');if(length(l)!=0) {for(i in 1:length(l)) pagedown::chrome_print(l[i],extra_args=c('--no-sandbox','--disable-dev-shm-usage','--disable-gpu'))};" | ||
cd .. | ||
# Render canvas version of website by changing _site.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,9 @@ | |
libs/ | ||
*_files/ | ||
*.html | ||
to-do.md | ||
*.code-workspace | ||
/.luarc.json | ||
/.quarto/ | ||
.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
README.md | ||
.git | ||
.Rhistory | ||
preview* | ||
docs | ||
**/*_cache | ||
**/*_files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
title: Font Awesome support | ||
author: Carlos Scheidegger | ||
version: 1.1.0 | ||
quarto-required: ">=1.2.269" | ||
contributes: | ||
shortcodes: | ||
- fontawesome.lua |
Oops, something went wrong.