-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path_quarto-optimize.yml
30 lines (29 loc) · 1.15 KB
/
_quarto-optimize.yml
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
project:
type: website
pre-render:
# create the .qmd files for the
# research papers and presentations
- scripts/parse-bibliography.py --force
# perform minification to make those files
# in the _include directory that will be imported
# into other files so that they are already minified
# by the time that quarto inserts them in other files
- scripts/minify-files.py --source _include --destination _optimize --force --verbose
post-render:
# perform minification on all of the generated files
- scripts/minify-files.py
# copy over all of the files that are not subject to
# management by quarto (e.g., the PDFs of papers)
- scripts/copy-files.py
format:
html:
include-in-header:
# include in the header of generated files only those
# with contents that have already been optimized through
# the process of minification
- file: _optimize/js/get-the-gist.js
- file: _optimize/html/header-include.html
include-after-body:
# load the instant-page.js script so that links are
# pre-fetched when a person hovers over content
- file: _include/js/instant-page.js