Repository navigation
Expand file tree
/
Copy path_quarto-website.yml
More file actions
203 lines (194 loc) · 5.29 KB
/
Copy path_quarto-website.yml
File metadata and controls
203 lines (194 loc) · 5.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
project:
type: website
pre-render:
# First, because it fetches the custom-callout extension that the filters below need.
- python3 tools/install-extensions.py
# Writes dependency-graph.json: the prerequisite graph of the definitions and results (#43).
- python3 tools/build_dependency_graph.py --site cie --pages . --out dependency-graph.json
resources:
- dependency-graph.js
- dependency-graph.json
output-dir: _site
# Explicit, so drafts at the root (intro.qmd, dnd.qmd, adnd.qmd) and the
# latex-macros submodule's own pages are not rendered.
render:
- index.qmd
- intro-causal.qmd
- philosophy-of-causality.qmd
- collider-bias.qmd
- bias-analyses.qmd
- d_in_d.qmd
- further-resources.qmd
- references.qmd
website:
title: "Causal Inference in Epidemiology"
site-url: https://morrison-lab.github.io/cie/
page-footer:
left:
- text: "Copyright 2024-2026, Douglas Ezra Morrison"
# google-analytics: "G-VS314RJ2KP"
reader-mode: true
repo-url: https://github.com/Morrison-Lab/cie
repo-actions: [edit, issue, source]
back-to-top-navigation: true
page-navigation: true
navbar:
left:
- text: "Home"
href: index.qmd
- text: "Chapters"
menu:
- text: "Introduction to causal inference"
href: intro-causal.qmd
- text: "Philosophy of causality"
href: philosophy-of-causality.qmd
- text: "Collider bias"
href: collider-bias.qmd
- text: "Bias analyses"
href: bias-analyses.qmd
- text: "Difference in differences analyses"
href: d_in_d.qmd
- text: "Further resources"
href: further-resources.qmd
- text: "References"
href: references.qmd
sidebar:
style: docked
contents:
- index.qmd
- intro-causal.qmd
- philosophy-of-causality.qmd
- collider-bias.qmd
- bias-analyses.qmd
- d_in_d.qmd
- further-resources.qmd
- references.qmd
author:
- name: "Douglas Ezra Morrison"
url: https://demorrison.ucdavis.edu/
affiliation: Department of Public Health Sciences, School of Medicine, University of California, Davis
# Every page renders as a web page. A chapter also renders as a slide deck and
# a PDF handout: its front matter lists those formats and names each output
# file. The options below are shared by every page that renders the format.
format:
html:
filters:
- Morrison-Lab/callouty-theorem
# By path, not extension name: Quarto looks extensions up before a
# `pre-render` script runs, so the copy that tools/install-extensions.py
# fetches would not be found by name.
- _extensions/coatless-quarto/custom-callout/customcallout.lua
- _extensions/coatless-quarto/custom-callout/fa.lua
include-after-body:
- text: '<script src="dependency-graph.js" defer></script>'
lightbox: true
link-external-icon: true
embed-resources: false
shift-heading-level-by: 0
subject: "Causal Inference in Epidemiology"
date: last-modified
date-format: "[Last modified:] YYYY-MM-DD: H:mm:ss (A)"
theme:
light: cosmo
dark: darkly
code-tools: true
df-print: paged
code-fold: true
code-link: true
fig-cap-location: top
html-math-method: mathjax
number-sections: true
number-depth: 3
toc-depth: 3
code-summary: "Show R code"
css: custom.scss
# Theorem-type, exercise and solution divs render as colored callouts, as in
# lds and Morrison-Lab/rme (#49): `callouty-theorem` wraps each `#def-`,
# `#thm-`, `#exm-`, `#exr-`, `#sol-` ... div in a callout, and
# `custom-callout` gives each type its color.
# These two blocks follow lds's `_quarto-website.yml`.
# The PDF handouts keep Quarto's own theorem headings.
callouty-theorem:
thm:
callout:
type: lem
lem:
callout:
type: lem
cor:
callout:
type: cor
prp:
callout:
type: prp
cnj:
callout:
type: cnj
def:
callout:
type: def
exm:
callout:
type: exm
icon: false
exr:
callout:
type: exr
proof:
override-title: true
callout:
type: proof
appearance: default
collapse: true
icon: true
solution:
override-title: true
callout:
type: solution
appearance: default
collapse: true
icon: false
remark:
callout:
type: remark
# The colors `custom-callout` gives each type. No reds; thm shares lem's blue.
custom-callout:
lem:
color: "#1565C0" # royal blue (also used for thm)
cor:
color: "#00838F" # dark cyan
prp:
color: "#827717" # dark olive
cnj:
color: "#558B2F" # grass green
def:
color: "#1B5E20" # forest green
exm:
color: "#6A1B9A" # deep purple
exr:
color: "#FFA500" # orange
proof:
color: "#37474F" # blue-grey slate
solution:
color: "#4E342E" # dark cocoa
remark:
color: "#AD1457" # dark magenta
comments:
hypothesis:
theme: clean
openSidebar: false
enableExperimentalNewNoteButton: true
execute:
warning: false
message: false
cache: false
freeze: auto # re-render only when source changes
editor:
mode: source
knitr:
opts_chunk:
collapse: true
# df_print: paged
comment: "#>"
R.options:
knitr.graphics.auto_pdf: true