Quarto + Netlify Deployment Setup. Use when setting up a Quarto project for Netlify deployment with RevealJS presentation support.
Install
npx skillscat add htlin222/dotfiles/quarto-netlify Install via the SkillsCat registry.
We need to produce a 2-3 sentence plain-text summary, objective, factual, no marketing, no superlatives, no calls to action. Must be at most 60 words. No quotes, no markdown, no bullet points, no headings. Just plain text. Summarize: skill sets up Quarto project for Netlify deployment with RevealJS support. It provides configuration files (_quarto.yml, netlify.toml, .gitignore, Makefile) and instructions for building and deploying. Use when deploying Quarto sites to Netlify, especially RevealJS presentations. We need 2-3 sentences. Let's craft ~45 words.
Quarto + Netlify Deployment Setup
Set up a Quarto project for Netlify deployment with RevealJS presentation support.
When to use
- When deploying a Quarto project to Netlify
- When setting up RevealJS presentations with Quarto
- When configuring automated builds for Quarto sites
- When you need the proven netlify.toml configuration for Quarto
Instructions
_quarto.yml Configuration
project:
type: default
output-dir: _site # Keep root clean, output to _site/
render:
- index.qmd
format:
revealjs:
output-file: slides.html
theme: [default, custom.scss]
slide-number: true
# Add plugins as needednetlify.toml (Proven Pattern)
[build]
command = """
curl -LO https://quarto.org/download/latest/quarto-linux-amd64.deb && \
dpkg -x quarto-linux-amd64.deb . && \
export PATH=$PWD/opt/quarto/bin:$PATH && \
quarto render
"""
publish = "_site"
[[redirects]]
from = "/"
to = "/slides.html"
status = 302Key points:
- Use
.debpackage withdpkg -xextraction (not tar.gz) - Extract to current dir
.(not a subfolder) - Path is
$PWD/opt/quarto/bin(not nested) - Just
quarto render(uses_quarto.ymlautomatically)
.gitignore
# Quarto output
/.quarto/
/_site/
# Node modules
node_modules/
# OS/Editor
.DS_Store
*.swpMakefile
.PHONY: all render preview clean
render:
quarto render index.qmd
preview:
quarto preview index.qmd
clean:
rm -rf _site .quartoRevealJS Extensions
Copy _extensions/ folder for plugins:
simplemenu- Navigation menu barreveal-auto-agenda- Auto-generated agendacode-fullscreen- Expand code to fullscreencodefocus- Progressive line highlighting
Deployment Steps
gh repo create [name] --public --source=. --remote=origingit push -u origin main- Netlify: Import from GitHub, auto-detects
netlify.toml - Deploy triggers on push to main