Getting Started with Quarto
January 27, 2025
Quarto, Jupyter Notebook, and GitHub-based Discussion Boards use markdown as its underlying document syntax.
Let’s do Classwork 2.
---
.
When we knit the document, Quarto sends the .qmd
file to jupyter/knitr, which executes all of the code chunks and creates a new markdown (.md
) document which includes the code and its output.
The markdown file (*.md
) generated by jupyter/knitr is then processed by pandoc, which is responsible for creating the output file.
- SOME_TEXT
in “.md” is equivalent to <ul><li> SOME_TEXT </li>
in ”.html”To create an HTML document from Quarto, we specify the html
output format in the YAML metadata of our document.
format: html
is set.In RStudio, we can create a new Quarto file from the menu, File -> New File -> Quarto Document.
Open an empty Quarto file.
Download the Quarto file, danl-310-quarto-r.qmd
from Brightspace, and open it from RStudio.
This syntax is part of YAML metadata in danl-310-quarto-r.qmd
.
USERNAME.github.io.Rporj
.
Project: (None)
at the top-right corner.USERNAME.github.io.Rporj
._quarto.yml
configures a website, and provides various options for HTML documents within the website.The Render button (command/Ctrl + shift + K) renders a single Quarto file.
quarto render
from Terminal renders all Quarto/Jupyter Notebook files in your local working directory:
quarto render
when we have changes in _quarto.yml
._quarto.yml
and *.qmd
only from your local laptop.
theme
specifies the Bootstrap theme to use for the page (themes are drawn from the Bootswatch theme library).
default
, bootstrap
, cerulean
, cosmo
, darkly
, flatly
, journal
, lumen
, paper
, readable
, sandstone
, simplex
, spacelab
, united
, and yeti
.highlight-style
specifies the code highlighting style.
default
, tango
, pygments
, kate
, monochrome
, espresso
, zenburn
, haddock
, breezedark
, and textmate
.index.qmd
sets a page about you.
jolla
trestles
solana
marquee
broadside
left:
- text: Project
href: project.qmd
- text: Blog
href: blog-listing.qmd
- text: Homeowrk
href: hw.qmd
navbar
in _quarto.yml
We can also create a navigation bar menu by including a menu
More details about navbar are available here: