From e0432280687847a623c9c5dbf2e16d8f7bc561c4 Mon Sep 17 00:00:00 2001 From: Sander Devisscher Date: Thu, 18 Jul 2024 15:04:41 +0200 Subject: [PATCH] try pkgdown #39 --- .github/workflows/build_pdf_manual.yaml | 39 +++---------------------- 1 file changed, 4 insertions(+), 35 deletions(-) diff --git a/.github/workflows/build_pdf_manual.yaml b/.github/workflows/build_pdf_manual.yaml index ba14b05..fac6a7e 100644 --- a/.github/workflows/build_pdf_manual.yaml +++ b/.github/workflows/build_pdf_manual.yaml @@ -37,47 +37,16 @@ jobs: run: | R -e "install.packages('devtools')" R -e "install.packages('roxygen2')" - - - name: Install LaTeX and required utilities - run: | - sudo apt-get install -y texlive-base \ - texlive-latex-recommended \ - texlive-latex-extra \ - texlive-fonts-recommended \ - texlive-font-utils \ - texlive-lang-all \ - texinfo - - - name: Install R packages - run: | - source("preprocessing/install_imports.R") - shell: Rscript {0} - - - name: cleanup_reference_manual - run: | - source("preprocessing/cleanup_reference_manual.R") - shell: Rscript {0} + R -e "install.packages('pkgdown')" - name: Build and document package run: | R -e "devtools::document()" + R -e "pkgdown::build_site()" - - name: Check for viewers and remove - run: | - sudo apt-get remove -y xdg-utils || true - - - name: Generate PDF manual - run: | - R CMD Rd2pdf . -o fistools.pdf || { echo "Failed to generate PDF"; exit 1; } - - - name: List temp files for debugging - if: failure() + - name: Generate PDF manual with pkgdown run: | - ls -la /tmp - ls -la $HOME - ls -la /home/runner/work/${{ github.repository }}/ - cat /home/runner/work/${{ github.repository }}/fistools.pdf.log || true - cat /home/runner/work/${{ github.repository }}/*.log || true + R -e "pkgdown::build_pdf()" - name: Commit and push changes if: success()