Stat Mania
  • Course Template
  • All Courses
  1. Make It Yours
  2. Rendering and publishing
  • Course Home
  • Start Here
    • How the template works
    • Project structure
  • Writing Lessons
    • Anatomy of a lesson
    • Components
    • Code blocks and live code
  • Make It Yours
    • Theming
    • Rendering and publishing

On this page

  • Preview while you write
  • Render the site
  • Before you publish
  • Check your understanding
  1. Make It Yours
  2. Rendering and publishing

Rendering and publishing

Preview locally, render, and deploy the finished course.
Quiz 6 min

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

  • Publishing with Quarto

Preview while you write

quarto preview

The 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 render

Because 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 preview while writing, quarto render to publish.
  • Run the checklist before you ship.
Back to top
Stat Mania

Free, hands-on statistics and programming courses that run right in your browser.

Courses

All courses R Programming Statistics Probability

Resources

Practice quizzes Tools & games Quarto docs Course kit on GitHub

Company

Home About Contact Privacy policy Terms of use
© Stat Mania. All rights reserved.
Theming