Skip to content

Commit

Permalink
fix: render all formats and link them
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanouil committed May 29, 2024
1 parent 44075d1 commit de83a1b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ jobs:
- name: Render Quarto Project
shell: bash
run: |
quarto render example.qmd --to html --output index.html --output-dir _site
echo -e "project:\n output-dir: _site" > _quarto.yml
# Render to all formats via for loop to avoid LaTeX error "pdf/beamer" formats
for format in html pdf revealjs beamer; do
quarto render --to ${format}
done
- uses: actions/configure-pages@v5

Expand Down
16 changes: 15 additions & 1 deletion example.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,21 @@ preview-colour:
text: true
filters:
- preview-colour
format: html
format:
html:
output-file: index
pdf:
output-file: preview-colour-latex
papersize: a4
margin:
x: 2.5cm
y: 2.5cm
revealjs:
output-file: preview-colour-revealjs
beamer:
output-file: preview-colour-beamer
aspectratio: 169
format-links: true
---

## Usage
Expand Down

0 comments on commit de83a1b

Please sign in to comment.