quarto-netlify
17
总安装量
3
周安装量
#20179
全站排名
安装命令
npx skills add https://github.com/htlin222/dotfiles --skill quarto-netlify
Agent 安装分布
opencode
3
gemini-cli
3
antigravity
3
claude-code
3
windsurf
3
codex
3
Skill 文档
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