Skip to content

Commit

Permalink
Merge pull request #123 from nanxstats/main
Browse files Browse the repository at this point in the history
Fix undefined control sequence `\cellcolor` error
  • Loading branch information
elong0527 committed Feb 21, 2024
2 parents ba2914b + 619906e commit 0690acc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/quarto-publish.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
on:
push:
branches: [master, main]
branches:
- main

name: Render and Publish

# Need these permissions to publish to GitHub Pages
permissions:
contents: write
pages: write

jobs:
build-deploy:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
Expand All @@ -19,7 +26,7 @@ jobs:
# uncomment below and fill to pin a version
# version: SPECIFIC-QUARTO-VERSION-HERE

# add software dependencies here
# Add software dependencies here
- name: Install ttf-mscorefonts-installer
run: |
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
Expand All @@ -36,7 +43,7 @@ jobs:
- name: Set up R packages in DESCRIPTION
uses: r-lib/actions/setup-r-dependencies@v2

# To publish to Netlify, RStudio Connect, or GitHub Pages, uncomment
# To publish to Netlify, Posit Connect, or GitHub Pages, uncomment
# the appropriate block below

# - name: Publish to Netlify (and render)
Expand All @@ -45,16 +52,17 @@ jobs:
# target: netlify
# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

# - name: Publish to RStudio Connect (and render)
# - name: Publish to Posit Connect (and render)
# uses: quarto-dev/quarto-actions/publish@v2
# with:
# target: connect
# CONNECT_SERVER: enter-the-server-url-here
# CONNECT_API_KEY: ${{ secrets.CONNECT_API_KEY }}

# NOTE: If Publishing to GitHub Pages, set the permissions correctly (see top of this yaml)
- name: Publish to GitHub Pages (and render)
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This secret is always available for GitHub Actions
4 changes: 4 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,7 @@ format:
theme: [cosmo, custom.scss]
pdf:
documentclass: scrbook
# Fixes 'Undefined control sequence \cellcolor' error
include-in-header:
- text: |
\usepackage[table]{xcolor}

0 comments on commit 0690acc

Please sign in to comment.