quarto-netlify
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 needed
netlify.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 = 302
Key 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
*.swp
Makefile
.PHONY: all render preview clean
render:
quarto render index.qmd
preview:
quarto preview index.qmd
clean:
rm -rf _site .quarto
RevealJS 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
More from htlin222/dotfiles
cpp
Write modern C++ with RAII, smart pointers, and STL. Use for C++ development, memory safety, or performance optimization.
130refactor
Refactor code for quality and maintainability. Use for cleanup and tech debt reduction.
74data-science
Data analysis, SQL queries, BigQuery operations, and data insights. Use for data analysis tasks and queries.
52c-lang
Write efficient C code with proper memory management and system calls. Use for C optimization, memory issues, or system programming.
46quarto-book
Generate Quarto Book project structure with chapters, configuration, and output settings. Use when user wants to create a book, multi-chapter document, technical manual, or asks about Quarto book setup.
45scientific-figure-assembly
Assemble multi-panel scientific figures with panel labels (A, B, C) at publication quality (300 DPI) using R. Use when combining individual plots into journal-ready figures.
43