Publishing your site
Parlance Labs
quarto render
_site/
by default, but can change it with the output-dir
setting:_site/
folder is a static site you can deploy anywhere. Ex: python -m http.server --d _site/
quarto preview
Easiest way to get started:
Built in targets:
Enable GitHub Pages
Make sure you enable GitHub Pages in your repo settings.
See this repo, specifically this example:
name: pub
on:
push:
branches: main
jobs:
pub:
permissions:
contents: write
pages: write
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: setup Python
uses: actions/setup-python@v3
- name: install Jupyter
run: python3 -m pip install jupyter
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Publish to GitHub Pages (and render)
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
See my code. Remember: Enable GitHub Pages in your repo settings.
quarto publish
.You can render or preview single files with quarto render
or quarto preview
.
Example: