-
DescriptionHi, I am trying to create a Quarto book with the option to export it as PDF using Github actions. During the rendering I get all kinds of exciting errors, this is the last error:
This is the error I got before it:
What am I doing wrong? I have followed all steps on https://quarto.org/docs/publishing/github-pages.html#github-action - there is no issues if I exclude the PDF, so it does work. It just doesn't work for the PDF version. The _quarto.yaml and workflow files is provided below. _quarto.yamlproject:
type: book
book:
title: '{SLmetrics}: Machine Learning Performance Evaluation on Steroids'
subtitle: Version 0.3-1
author: Serkan Korkmaz
version: 0.3-1
repo-url: https://github.com/serkor1/SLmetrics
repo-branch: development
repo-subdir: docs
repo-actions:
- edit
- source
- issue
sharing:
- twitter
- facebook
- linkedin
sidebar:
title: Documentation
downloads:
- pdf
- epub
chapters:
bibliography: references.bib
format:
html:
theme:
light:
- cosmo
- theme-light.scss
dark:
- slate
- theme-dark.scss
fontsize: 18px
mainfont: calibri
pdf:
documentclass: scrreprt
keep-tex: true
latex-auto-install: true
highlight-style: github
execute:
freeze: auto
cache: true
github actions .yamlon:
workflow_dispatch:
push:
paths: ['docs/**', '.github/workflows/build-docs.yaml', 'tools/doc-builders/build-yaml.py']
branches-ignore:
- stable
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
name: Build Docs
jobs:
build-docs:
runs-on: ubuntu-latest
permissions:
contents: write
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true
- name: Install R
uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'
- name: Setup R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
cache: 'always'
packages:
local::.
deps::.
extra-packages:
any::MLmetrics
any::mlr3measures
any::yardstick
any::bench
any::tidyverse
any::tidymodels
any::stringi
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12.x'
cache: pip
- name: "Setup Python dependencies"
shell: bash
run: |
pip install -r tools/requirements.txt
- name: Parse Roxygen files
shell: Rscript {0}
run: |
# 1) create folders
dir.create("docs/ref_regression")
dir.create("docs/ref_classification")
# 2) source builders
source('tools/doc-builders/build-qmd.R')
- name: Build YAML-file
run: python tools/doc-builders/build-yaml.py
- uses: r-lib/actions/setup-tinytex@v2
- run: tlmgr --version
- name: Install additional LaTeX packages
run: |
tlmgr update --self
tlmgr install titlesec
tlmgr list --only-installed
- name: Render docs
uses: quarto-dev/quarto-actions/render@v2
with:
path: docs/
- name: Publish docs
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
path: docs/
render: false
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
Does the PDF builds without error locally with TinyTeX distribution ? From what I see in your action, you are installing TinyTeX twice two - I don't know if this is working well.
Maybe try with only one ? |
Beta Was this translation helpful? Give feedback.
See:
The fix from Pandoc is not yet available to Quarto, thus the following is still opened: