Demonstration slides
2024-10-10
Add extensions with the following code (which adds the clean-revealjs
extension, for example, which has a detailed demo hosted at github.com/grantmcdermott/quarto-revealjs-clean-demo):
Then replace:
format:
revealjs: default
with:
format:
clean-revealjs:
self-contained: true
In the YAML header of your .qmd
file.
gh-pages
branchYou can do this with a single quarto command:
Which leads to the following text and eventually auto-opens the deployed webiste!
The previous command creates a gh-pages
branch with the slides in the docs
folder. This is then automatically deployed to GitHub Pages, and the website is opened in your browser when ready:
How awesome is that?
Source of quarto publish gh-pages
hint: Error message from GitHub Actions when trying to publish slides to GitHub Pages:
ERROR: Unable to publish to GitHub Pages (the remote origin does not have a branch named "gh-pages". Use first `quarto publish gh-pages` locally to initialize the remote repository for publishing.)
Creates citations like this: (Peng 2011)
Alt+Shift+Z