Website Basics
February 6, 2024
tidyverse
PackageWhen we knit the document, Quarto sends the .qmd
file to 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 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”html
output format in the YAML metadata of our document.
format: html
is set.USERNAME.github.io.Rporj
if it is on.
USERNAME.github.io.Rporj
at the top-right corner.danl-200-quarto.qmd
from Brightspace, and open it from RStudio.danl-210-quarto.qmd
.Mac
Windows
USERNAME.github.io.Rporj
.
Project: (None)
at the top-right corner.USERNAME.github.io.Rporj
._quarto.yml
configuration file.
*.js
) adds interactive elements in the house, such as opening doors and lighting.quarto render
from Terminal renders all Quarto files in your local working directory:
We should use quarto render
when we have changes in _quarto.yml
.
The Render button (command/Ctrl + shift + K) renders (1) a single Quarto file or (2) Quarto files that have changes but have not rendered yet.
Make changes only from your local laptop (or Posit Cloud).
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