Publishing
Slides
Open slides in new window Download PDF of slides
Exercises
Deploying with Quarto Pub
Go to quartopub.com and create a free account. Make sure you’re logged in.
In the terminal, run this:
Terminal
quarto publish
Select
Quarto Pub
and press enter. Answer all the other questions.Wait for the site to render and upload.
Deploying with GitHub Pages
Get your project code on GitHub
Go to github.com and create a free account.
Add a
.gitignore
file to your website project with this:.gitignore
.Rproj.user .Rhistory .RData .Ruserdata /_site/
Initialize a git repository for your website project.
Commit the files and push to GitHub.
Tell Quarto to use GitHub Pages
Change the
output-dir
option in_quarto.yml
todocs
._quarto.yml
project: type: website output-dir: docs
Add an empty file named
.nojekyll
to the root of your website project (this tells GitHub to not run its own static site generator).Render your site.
Commit the newly created
docs/
folder and.nojekyll
file and push to GitHub.
Tell GitHub Pages to serve your site
From your GitHub repository, go to Settings > Pages and configure the repository to publish from the
docs
directory of yourmain
branch.Wait for GitHub to build and deploy the site.