Rendering and publishing
Preview locally, render, and deploy the finished course.
By the end of this lesson you will
- Preview while writing
- Render the final site
- List what to check before you publish
Cheat sheet
quarto preview- Live preview
quarto render- Build the site
git push- Publish to GitHub
Resources
Preview while you write
quarto previewThe page reloads when you save. The pre-render script runs first, so the home page and module pages are always current.
Render the site
quarto renderBecause output-dir is ., the HTML lands next to the sources, which is how the courses/ repo is served: statmania.info/courses/<slug>/.
Before you publish
Check your understanding
Q1. Type the command that serves the course locally and reloads on save.
You have finished the course. Press Mark as complete on this page, then go back to the course home and watch the progress ring reach 100%.
quarto previewwhile writing,quarto renderto publish.- Run the checklist before you ship.