Repository navigation
Expand file tree
/
Copy path_quarto-website.yml
More file actions
247 lines (240 loc) · 6.81 KB
/
Copy path_quarto-website.yml
File metadata and controls
247 lines (240 loc) · 6.81 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
project:
type: website
output-dir: _site
# Writes dependency-graph.json: the prerequisite graph of the definitions and results (#15).
pre-render: python3 tools/build_dependency_graph.py --pages . --site cds --out dependency-graph.json
resources:
- dependency-graph.js
- dependency-graph.json
render:
- "*.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/"
- "!cds/"
website:
title: "Computational Complexity for Data Science"
site-url: https://morrison-lab.github.io/cds/
description: "Computational complexity 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
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/cds
repo-actions: [edit, issue, source]
navbar:
# The left-hand menus below mirror the sidebar's `contents` one-for-one
# (same groups, same names, same order, same pages): edit the two
# together. The site title (which links home), search, and the GitHub
# link round out the navbar.
search: true
left:
- text: "Measuring cost"
menu:
- asymptotic-notation.qmd
- text: "Hardness"
menu:
- p-and-np.qmd
- reductions.qmd
- text: "Compression"
menu:
- kolmogorov-complexity.qmd
right:
- icon: github
href: https://github.com/Morrison-Lab/cds
aria-label: GitHub
sidebar:
# Topic pages in reading order, grouped into sections, each group
# depending only on earlier ones; the navbar's `left` menus mirror it.
# There is no Home entry: the navbar title already links to the home page.
style: docked
search: false
contents:
- section: "Measuring cost"
contents:
- asymptotic-notation.qmd
- section: "Hardness"
contents:
- p-and-np.qmd
- reductions.qmd
- section: "Compression"
contents:
- kolmogorov-complexity.qmd
callouty-theorem:
thm:
override-title: false # do not have the filter set
# or override a callout title
callout: # parameters of the wrapping callout
# see Quarto callout docs for details
type: lem # same color as lem (royal blue); color set in custom-callout block below
appearance: minimal
lem:
override-title: false
callout:
type: lem
appearance: minimal
cor:
override-title: false
callout:
type: cor
appearance: minimal
prp:
override-title: false
callout:
type: prp
appearance: minimal
cnj:
override-title: false
callout:
type: cnj
appearance: minimal
def:
override-title: false
callout:
type: def
appearance: minimal
exm:
override-title: false
callout:
type: exm
appearance: minimal
exr:
override-title: false
callout:
type: exr
appearance: minimal
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:
override-title: false
callout:
type: remark
appearance: minimal
# 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
format:
html:
filters:
- sun123zxy/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
include-after-body:
- anchor-landing.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
docx:
number-sections: true
number-depth: 3
df-print: tibble
prefer-html: true
revealjs:
output-file: "{stem}-slides.html"
search: false # decks duplicate the HTML pages; without this key search.json lists the *-slides.html decks (checked with Quarto 1.10.19), so the site search would index more than the HTML format
theme: [simple, styles-reveal.scss]
include-in-header: qwt-reveal-toggle.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: 0
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: "#>"