From 34c347c115bbac7920dcbb391039f089e73214c8 Mon Sep 17 00:00:00 2001 From: Roy Francis Date: Mon, 21 Oct 2024 18:27:45 +0200 Subject: [PATCH] Disabled PDF rendering --- .github/workflows/main.yml | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5cc5b822..753ba4cd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -58,13 +58,14 @@ jobs: 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'))};" - for html_file in slide_*.html; do - if [ -f "$html_file" ]; then - base_name="${html_file%.html}" - pdf_file="${base_name}.pdf" - docker run --rm -u "$(id -u "${USER}"):$(id -g "${USER}")" -v "${PWD}:/slides" astefanutti/decktape:3.12.0 "/slides/${html_file}" "/slides/${pdf_file}" - fi - done + # alternative solution using decktape + # for html_file in slide_*.html; do + # if [ -f "$html_file" ]; then + # base_name="${html_file%.html}" + # pdf_file="${base_name}.pdf" + # docker run --rm -u "$(id -u "${USER}"):$(id -g "${USER}")" -v "${PWD}:/slides" astefanutti/decktape:3.12.0 "/slides/${html_file}" "/slides/${pdf_file}" + # fi + # done cd .. # Render canvas version of website by changing _site.yml @@ -107,13 +108,14 @@ jobs: done echo "Generating PDFs for HTML slides ..." # 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'))};" - for html_file in slide_*.html; do - if [ -f "$html_file" ]; then - base_name="${html_file%.html}" - pdf_file="${base_name}.pdf" - docker run --rm -u "$(id -u "${USER}"):$(id -g "${USER}")" -v "${PWD}:/slides" astefanutti/decktape:3.12.0 "/slides/${html_file}" "/slides/${pdf_file}" - fi - done + # alternative solution using decktape + # for html_file in slide_*.html; do + # if [ -f "$html_file" ]; then + # base_name="${html_file%.html}" + # pdf_file="${base_name}.pdf" + # docker run --rm -u "$(id -u "${USER}"):$(id -g "${USER}")" -v "${PWD}:/slides" astefanutti/decktape:3.12.0 "/slides/${html_file}" "/slides/${pdf_file}" + # fi + # done cd .. # List folder contents