10:00
Session 2: AEA Replication in Quarto
Tuesday, July 18, 2023
π github.com/cynthiahqy/monash-quarto-aea
.
βββ 00-pre-workshop.qmd
βββ 01a-hello-quarto
β βββ images
β βββ index.qmd
β βββ slides.qmd
...01d...04d...
βββ index.qmd
βββ about.qmd
βββ day01-exercises.zip
βββ images
β βββ cynthia-profile.jpg
βββ _quarto.yml
βββ LICENSE
βββ README.md
βββ README.qmd
βββ docs
β βββ 00-pre-workshop.html
β βββ 01a-hello-quarto
β βββ 01b-formats
β βββ 01c-articles
β βββ 01d-wrap-up
β βββ about.html
β βββ day01-exercises.zip
β βββ images
β βββ index.html
β βββ search.json
β βββ site_libs
βββ _freeze
β βββ 00-pre-workshop
β βββ 01a-hello-quarto
β βββ 01b-docs
β βββ 01b-formats
β βββ 01c-articles
β βββ site_libs
βββ references.bib
βββ style
βββ slides.scss
_quarto.yml
with:
.qmd
filesare directories that provide:
A way to render all or some of the files in a directory with a single command (e.g. quarto render myproject).
A way to share YAML configuration across multiple documents.
The ability to redirect output artifacts to another directory.
The ability to freeze rendered output (i.e. donβt re-execute documents unless they have changed).
Every project has a _quarto.yml
config file:
The type
field indicates the type of project:
default
: Collection of documents
website
: Websites (and blogs)!
books
: Books
We will focus on Websites.
output-dir
field controls where rendered output goes. Defaults to _site
render
: lists which files to render. Defaults to all files.resources:
specifies additional files that should be copied to the output directory._quarto.yml
See Render Targets and Site Resources in the Quarto Website Guide for more details.
π github.com/cynthiahqy/monash-quarto-aea
.
βββ 00-pre-workshop.qmd
βββ 01a-hello-quarto
β βββ images
β βββ index.qmd
β βββ slides.qmd
βββ index.qmd
βββ about.qmd
βββ day01-exercises.zip
...01d...04d...
...README...LICENSE...
βββ _quarto.yml
βββ _freeze/
βββ docs/
βββ references.bib
βββ style
βββ slides.scss
For a full list of available options see quarto.org > Reference > Projects > Websites. Include these options under the website:
field.
Open up the workshop website. Pick a YAML option from below and figure out what it does. You might find these links useful: Website Navigation, Website Options. Compare with your neighbour.
10:00
website:
title: "Meeting AEA Replication standards using Quarto and GitHub"
description: "Jul 18-20 Workshop on Quarto for Department of Economics, Monash University"
page-navigation: true
page-footer:
right: "This page is built with π and [Quarto](https://quarto.org/)."
left: "© Copyright 2023, Cynthia Huang"
sidebar:
pinned: true
align: center
style: docked
search: true
collapse-level: 2
tools:
- icon: github
href: https://github.com/cynthiahqy/monash-quarto-aea
text: "GitHub organization"
contents:
- href: index.qmd
text: Home
- href: about.qmd
text: About
- href: 00-pre-workshop.qmd
text: Pre-work
- text: "---"
- section: "Getting to Know Quarto"
contents:
- href: 01a-hello-quarto/index.qmd
text: Hello Quarto!
quarto-replication
template project again.quarto::quarto_render()
and quarto::quarto_preview()
replication-pkg/README.qmd
as a page the sidebar. You will need:
gfm
to html
render
if not)href
link to the file in the contents
option of sidebar
href
link to the sidebar without specifying text
?10:00
Comments in
.yml
filesUse
#
to add comments.