-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
39 lines (28 loc) · 942 Bytes
/
Makefile
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
@PHONY: pc-setup qrslides render preview publish clean
pc-setup:
python-3.11.4 -m pip install --upgrade pip
python-3.11.4 -m pip install -r requirements.txt
# remove original welcome notebook
rm -rf ../welcome.ipynb
# copy over repo files to parent directory
cp -rf worksheets ..
slides:
find ./materials/slides/ -type f -name *.qmd -exec quarto render {} \;
render:
quarto render
preview:
quarto preview index.qmd --port 8888
publish:
# run the below once before runing this target
# you only need to run this target once if ci is setup
# git checkout --orphan gh-pages
# git reset --hard # make sure all changes are committed before running this!
# git commit --allow-empty -m "Initialising gh-pages branch"
# git push origin gh-pages
make render
quarto publish gh-pages
clean:
rm -rf docs/ _site/ _freeze
rm -rf materials/slides/.jupyter_cache
rm -rf materials/slides/*_files
rm -rf materials/slides/*.html