Quarto: Publication to GitHub Pages
Objectives
💡 You can publish a Quarto website to GitHub Pages using GitHub Actions.
💡 You understand the difference between local and CI-based publishing.
💡 You can configure a GitHub Action for Quarto publication.
💡 You know how to set up custom domains for GitHub Pages.
Tasks
In this session, you will work on the following tasks:
- Reading: Read the chapter(s) Publishing Quarto projects to GitHub Pages using GitHub Actions in the Version Control Book.
- Implementation: Try out the commands in the chapter.
- Exercises: Work on the exercises.
As always:
- Try out the commands of this session and play around with them.
- Check whether you have achieved the learning objectives.
- Ask questions!
Exercises
Publish your Quarto project to GitHub Pages using at least one of the available methods.
Slides
NoteHow can I download the slides as a PDF file?
To export the slides to PDF, do the following:
- Toggle into Print View using the E key (or using the Navigation Menu).
- Open the in-browser print dialog (CTRL/CMD+P).
- Change the Destination setting to Save as PDF.
- Change the Layout to Landscape.
- Change the Margins to None.
- Enable the Background graphics option.
- Click Save.
Note: This feature has been confirmed to work in Google Chrome, Chromium as well as in Firefox.
Here’s what the Chrome print dialog would look like with these settings enabled:
These instructions were copied from the Quarto documentation (MIT License) and slightly modified.