Repository navigation
Expand file tree
/
Copy path_quarto-website.yml
More file actions
409 lines (401 loc) · 12.9 KB
/
Copy path_quarto-website.yml
File metadata and controls
409 lines (401 loc) · 12.9 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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
project:
type: website
output-dir: _site
# Writes dependency-graph.json: the prerequisite graph of the definitions and results.
# Then, on a pull request, drops the PDF handouts and Word files from the working
# copy unless it carries the `preview:pdf` or `preview:docx` label, since they take
# most of the render time.
pre-render:
- python3 tools/build_dependency_graph.py --pages . --site mds --out dependency-graph.json
- python3 tools/skip_pdf_in_previews.py
# Writes _site/anchor-index.json, which page holds each id, so that
# anchor-landing.html sends a link to an id that moved to another page on to
# the page that holds it now (course sites such as lds link to mds anchors).
post-render:
- anchor-index.py
resources:
- dependency-graph.js
- dependency-graph.json
render:
- "*.qmd"
- "chapters/*.qmd"
- "!README.md"
- "!appendix-document-metadata.qmd"
- "!references.qmd"
# The `latex-macros` git submodule provides macro definitions for include/
# shortcode use, not standalone site pages. Don't render its .qmd files
# directly: macros-table.qmd uses DT::datatable() (an HTML widget) that
# errors when the project also renders to PDF.
- "!latex-macros/"
- "!mds/"
website:
google-analytics: "G-VLDZY2T3JF"
cookie-consent: implied
title: "Math for Data Science"
site-url: https://morrison-lab.github.io/mds/
description: "Mathematics prerequisites for data science courses"
# https://quarto.org/docs/websites/website-llms.html --- use `llms-txt:`, not `llms:` (schema error)
llms-txt: true
page-footer:
center: "Built with [Quarto](https://quarto.org/)"
back-to-top-navigation: true
# Previous/next links at the foot of each page (and the floating margin
# arrows added by page-navigation.html) follow the sidebar's order, so
# page-navigation does nothing without the sidebar below.
# https://quarto.org/docs/websites/website-navigation.html#page-navigation
page-navigation: true
reader-mode: true
# Quarto opens search on a bare "f" or "s" keyup, which also fires after
# Ctrl/Cmd-F (find in page) and Ctrl/Cmd-S (save). Keep only "/".
search:
keyboard-shortcut: ["/"]
repo-url: https://github.com/Morrison-Lab/mds
repo-actions: [edit, issue, source]
navbar:
left:
- text: "Notation"
href: notation.qmd
- text: "Sets and Functions"
menu:
- indicator-functions.qmd
- text: "Algebra"
menu:
- text: "Overview"
href: algebra.qmd
- algebra-basics.qmd
- algebra-convexity.qmd
- algebra-sums.qmd
- algebra-polynomials.qmd
- algebra-exponentials.qmd
- algebra-trigonometry.qmd
- algebra-complex.qmd
- text: "Measures"
menu:
- text: "Overview"
href: measures.qmd
- measures-sigma-algebras.qmd
- measures-additivity.qmd
- measures-measure-spaces.qmd
- measures-integrals.qmd
- measures-lp-spaces.qmd
- measures-product.qmd
- text: "Calculus"
menu:
- text: "Overview"
href: calculus.qmd
- calculus-derivatives.qmd
- calculus-taylor-series.qmd
- calculus-integration.qmd
- calculus-double-integrals.qmd
- text: "Linear Algebra"
menu:
- text: "Overview"
href: linear-algebra.qmd
- linear-algebra-vectors.qmd
- linear-algebra-matrices.qmd
- linear-algebra-matrix-multiplication.qmd
- linear-algebra-linear-maps.qmd
- linear-algebra-subspaces.qmd
- linear-algebra-bases.qmd
- linear-algebra-column-null-space.qmd
- linear-algebra-rank-nullity.qmd
- linear-algebra-affine-subspaces.qmd
- linear-algebra-direct-sums.qmd
- linear-algebra-orthogonal-complements.qmd
- linear-algebra-inner-products.qmd
- linear-algebra-orthonormal-bases.qmd
- linear-algebra-special-matrices.qmd
- linear-algebra-decompositions.qmd
- linear-algebra-determinants.qmd
- linear-algebra-definite-matrices.qmd
- linear-algebra-projections.qmd
- linear-algebra-generalized-inverses.qmd
- linear-algebra-least-squares.qmd
- linear-algebra-diagonalization.qmd
- linear-algebra-cholesky.qmd
- linear-algebra-complex.qmd
- text: "Vector Calculus"
menu:
- text: "Overview"
href: vector-calculus.qmd
- vector-calculus-gradients.qmd
- vector-calculus-derivative-rules.qmd
- vector-calculus-hessian.qmd
- text: "Optimization"
menu:
- text: "Overview"
href: optimization.qmd
- optimization-critical-points.qmd
- optimization-optimality.qmd
- optimization-convexity.qmd
- optimization-constrained.qmd
- optimization-newton.qmd
- optimization-gradient-descent.qmd
- optimization-quasi-newton.qmd
- text: "Dependency Tree"
href: dependency-tree.qmd
right:
- icon: github
href: https://github.com/Morrison-Lab/mds
aria-label: GitHub
# Keep the sidebar in the same order as the navbar: it sets the reading
# order for the previous/next links. Add each new page to both.
# Every navbar link is also in the sidebar, which on its own makes Quarto
# highlight the first navbar link ("Notation") on every page;
# page-navigation.html (included under format.html) corrects that.
sidebar:
style: docked
# sections are collapsible and start folded; the current page's section
# stays open (collapse-level 1 folds every depth, default 2 opens depth 1)
collapse-level: 1
search: false # the navbar already has search
contents:
- text: "Home"
href: index.qmd
- notation.qmd
- section: "Sets and Functions"
href: sets-functions.qmd
contents:
- indicator-functions.qmd
- section: "Algebra"
href: algebra.qmd
contents:
- algebra-basics.qmd
- algebra-convexity.qmd
- algebra-sums.qmd
- algebra-polynomials.qmd
- algebra-exponentials.qmd
- algebra-trigonometry.qmd
- algebra-complex.qmd
- section: "Measures"
href: measures.qmd
contents:
- measures-sigma-algebras.qmd
- measures-additivity.qmd
- measures-measure-spaces.qmd
- measures-integrals.qmd
- measures-lp-spaces.qmd
- measures-product.qmd
- section: "Calculus"
href: calculus.qmd
contents:
- calculus-derivatives.qmd
- calculus-taylor-series.qmd
- calculus-integration.qmd
- calculus-double-integrals.qmd
- section: "Linear Algebra"
href: linear-algebra.qmd
contents:
- linear-algebra-vectors.qmd
- linear-algebra-matrices.qmd
- linear-algebra-matrix-multiplication.qmd
- linear-algebra-linear-maps.qmd
- linear-algebra-subspaces.qmd
- linear-algebra-bases.qmd
- linear-algebra-column-null-space.qmd
- linear-algebra-rank-nullity.qmd
- linear-algebra-affine-subspaces.qmd
- linear-algebra-direct-sums.qmd
- linear-algebra-orthogonal-complements.qmd
- linear-algebra-inner-products.qmd
- linear-algebra-orthonormal-bases.qmd
- linear-algebra-special-matrices.qmd
- linear-algebra-decompositions.qmd
- linear-algebra-determinants.qmd
- linear-algebra-definite-matrices.qmd
- linear-algebra-projections.qmd
- linear-algebra-generalized-inverses.qmd
- linear-algebra-least-squares.qmd
- linear-algebra-diagonalization.qmd
- linear-algebra-cholesky.qmd
- linear-algebra-complex.qmd
- section: "Vector Calculus"
href: vector-calculus.qmd
contents:
- vector-calculus-gradients.qmd
- vector-calculus-derivative-rules.qmd
- vector-calculus-hessian.qmd
- section: "Optimization"
href: optimization.qmd
contents:
- optimization-critical-points.qmd
- optimization-optimality.qmd
- optimization-convexity.qmd
- optimization-constrained.qmd
- optimization-newton.qmd
- optimization-gradient-descent.qmd
- optimization-quasi-newton.qmd
- dependency-tree.qmd
# Each type below gets a title bar (type, number, name) apart from the body,
# and folds, open by default: the callouty-theorem defaults since 1.4.0.
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
exr:
callout:
type: exr
proof: # also support wrapping proof-like environments
override-title: true # override the callout title with
# the proof-type label,
# appending the element name when provided
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
# Figures and tables are wrapped whole; the caption keeps its own
# "Figure 1" label, so there is no title override.
fig:
callout:
type: fig
appearance: minimal
collapse: false
tbl:
callout:
type: tbl
appearance: minimal
collapse: false
# Color palette for theorem/proof environments.
# The coatless-quarto/custom-callout extension reads this block and injects
# CSS (HTML) and LaTeX \definecolor (PDF) so each type gets a unique color.
# Rules: no reds; thm shares lem's royal 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 (very distinct from theorem types)
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
fig:
color: "#757575" # neutral grey: a figure or table is not a result
tbl:
color: "#757575"
format:
html:
filters:
- Morrison-Lab/callouty-theorem
- coatless-quarto/custom-callout
theme:
light: [cosmo, offwhite.scss]
dark: darkly
# Replaces Quarto's two-way toggle with a Light / Off-white / Parchment / Dark dropdown.
include-in-header: theme-picker.html
# Floating previous/next arrows in the page margins, and navbar
# highlighting for the current page (needed because every navbar link is
# also in the sidebar).
include-after-body:
- tabset-code-in-tabs.html
- page-navigation.html
- anchor-landing.html
- table-roles.html
- text: '<script src="dependency-graph.js" defer></script>'
css: styles.css
toc: true
anchor-sections: true
toc-location: right
toc-depth: 3
code-fold: true
code-tools: true
code-link: true
code-summary: "Show code"
highlight-style: arrow
lightbox: true
link-external-icon: true
embed-resources: false
fig-cap-location: top
html-math-method: mathjax
number-sections: true
number-depth: 3
df-print: paged
# Each page ends with a linked list of its #def- divs (def-list.lua, bundled
# with callouty-theorem 1.5.0). HTML only: decks and handouts are unchanged.
def-list: true
docx:
number-sections: true
number-depth: 3
df-print: tibble
prefer-html: true
revealjs:
search: false # decks duplicate the HTML pages, so the search indexes only the HTML format
theme: [simple, styles-reveal.scss]
include-in-header: qwt-reveal-toggle.html
include-after-body: tabset-code-in-tabs.html
slide-number: true
chalkboard: false
preview-links: auto
controls: true
transition: slide
background-transition: fade
lightbox: true
fig-cap-location: top
html-math-method: mathjax
number-sections: true
progress: true
incremental: false
df-print: paged
number-depth: 2
shift-heading-level-by: 1
slide-level: 2
scrollable: true
echo: true
margin: 0.0
code-fold: true
code-link: true
code-summary: "[Code]"
auto-stretch: true
fig-height: 5
fig-width: 7
date: last-modified
date-format: "[Last modified:] YYYY-MM-DD HH:mm:ss (z)"
execute:
warning: false
message: false
cache: false
freeze: auto
knitr:
opts_chunk:
collapse: true
comment: "#>"