-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
93 lines (87 loc) · 6.35 KB
/
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
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
lectures: le01 le02 le03 le04 le05 le06 le07 le08 le09 le10
le01:
pandoc -t html5 --template=slides/template.revealjs --standalone --section-divs --variable theme="journal" --variable transition="linear" content/lectures/lecture_01.md -o slides/lecture_01.html
decktape automatic --no-sandbox -s 1280x960 slides/lecture_01.html slides/lecture_01.pdf
le02:
pandoc -t html5 --template=slides/template.revealjs --standalone --section-divs --variable theme="journal" --variable transition="linear" content/lectures/lecture_02.md -o slides/lecture_02.html
decktape automatic --no-sandbox -s 1280x960 slides/lecture_02.html slides/lecture_02.pdf
le03:
pandoc -t html5 --template=slides/template.revealjs --standalone --section-divs --variable theme="journal" --variable transition="linear" content/lectures/lecture_03.md -o slides/lecture_03.html
decktape automatic --no-sandbox -s 1280x960 slides/lecture_03.html slides/lecture_03.pdf
le04:
pandoc -t html5 --template=slides/template.revealjs --standalone --section-divs --variable theme="journal" --variable transition="linear" content/lectures/lecture_04.md -o slides/lecture_04.html
decktape automatic --no-sandbox -s 1280x960 slides/lecture_04.html slides/lecture_04.pdf
le05:
pandoc -t html5 --template=slides/template.revealjs --standalone --section-divs --variable theme="journal" --variable transition="linear" content/lectures/lecture_05.md -o slides/lecture_05.html
decktape automatic --no-sandbox -s 1280x960 slides/lecture_05.html slides/lecture_05.pdf
le06:
pandoc -t html5 --template=slides/template.revealjs --standalone --section-divs --variable theme="journal" --variable transition="linear" content/lectures/lecture_06.md -o slides/lecture_06.html
decktape automatic --no-sandbox -s 1280x960 slides/lecture_06.html slides/lecture_06.pdf
le08:
pandoc -t html5 --template=slides/template.revealjs --standalone --section-divs --variable theme="journal" --variable transition="linear" content/lectures/lecture_08.md -o slides/lecture_08.html
decktape automatic --no-sandbox -s 1290x960 slides/lecture_08.html slides/lecture_08.pdf
le09:
pandoc -t html5 --template=slides/template.revealjs --standalone --section-divs --variable theme="journal" --variable transition="linear" content/lectures/lecture_09.md -o slides/lecture_09.html
decktape automatic --no-sandbox -s 1290x960 slides/lecture_09.html slides/lecture_09.pdf
pandoc -t html5 --template=slides/template.revealjs --standalone --section-divs --variable theme="journal" --variable transition="linear" content/lectures/assignment03.md -o slides/assignment03.html
le11:
pandoc -t html5 --template=slides/template.revealjs --standalone --section-divs --variable theme="journal" --variable transition="linear" content/lectures/lecture_11.md -o slides/lecture_11.html
decktape automatic --no-sandbox -s 1280x960 slides/lecture_11.html slides/lecture_11.pdf
labs: la00 la01 la02 la03 la04 la05 la06 la08 la09
la00:
# Begin
cd content/labs && jupyter nbconvert --to html begin.ipynb --output begin.html
#cd content/labs && jupyter nbconvert --to latex begin.ipynb --output begin.tex && texbuild begin.tex && rm begin.tex
# Tools
cd content/labs && jupyter nbconvert --to html lab_00.ipynb --output lab_00.html
#cd content/labs && jupyter nbconvert --to latex lab_00.ipynb --output lab_00.tex && texbuild lab_00.tex && rm lab_00.tex
la01:
cd content/labs && jupyter nbconvert --to html lab_01.ipynb --output lab_01.html
cd content/labs && jupyter nbconvert --to latex lab_01.ipynb --output lab_01.tex && texbuild lab_01.tex && rm lab_01.tex && rm -R lab_01_files/
la02:
cd content/labs && jupyter nbconvert --to html lab_02.ipynb --output lab_02.html
cd content/labs && jupyter nbconvert --to latex lab_02.ipynb --output lab_02.tex && texbuild lab_02.tex && rm lab_02.tex && rm -R lab_02_files/
la03:
cd content/labs && jupyter nbconvert --to html lab_03.ipynb --output lab_03.html
cd content/labs && jupyter nbconvert --to latex lab_03.ipynb --output lab_03.tex && texbuild lab_03.tex && rm lab_03.tex && rm -R lab_03_files/
la04:
cd content/labs && jupyter nbconvert --to html lab_04.ipynb --output lab_04.html
cd content/labs && jupyter nbconvert --to latex lab_04.ipynb --output lab_04.tex && texbuild lab_04.tex && rm lab_04.tex && rm -R lab_04_files/
# Extras
cd content/labs && jupyter nbconvert --to html lab_04_extras.ipynb --output lab_04_extras.html
cd content/labs && jupyter nbconvert --to latex lab_04_extras.ipynb --output lab_04_extras.tex && texbuild lab_04_extras.tex && rm lab_04_extras.tex && rm -R lab_04_extras_files/
la05:
cd content/labs && jupyter nbconvert --to html lab_05.ipynb --output lab_05.html
cd content/labs && jupyter nbconvert --to latex lab_05.ipynb --output lab_05.tex && texbuild lab_05.tex && rm lab_05.tex && rm -R lab_05_files/
la06:
cd content/labs && jupyter nbconvert --to html lab_06.ipynb --output lab_06.html
cd content/labs && jupyter nbconvert --to latex lab_06.ipynb --output lab_06.tex && texbuild lab_06.tex && rm lab_06.tex && rm -R lab_06_files/
la08:
cd content/labs && jupyter nbconvert --to html lab_08.ipynb --output lab_08.html
cd content/labs && jupyter nbconvert --to latex lab_08.ipynb --output lab_08.tex && texbuild lab_08.tex && rm lab_08.tex && rm -R lab_08_files/
la09:
cd content/labs && jupyter nbconvert --to html lab_09.ipynb --output lab_09.html
cd content/labs && jupyter nbconvert --to html lab_09-lecture_figures.ipynb --output lab_09-lecture_figures.html
cd content/labs && jupyter nbconvert --to latex lab_09.ipynb --output lab_09.tex && texbuild lab_09.tex && rm lab_09.tex && rm -R lab_09_files/
website:
jekyll build
git checkout gh-pages
cp -r _site/* ./
git add .
git commit -am "Building website..."
git push origin gh-pages
git checkout master
update:
git checkout master
git pull origin master
git checkout gh-pages
git pull origin gh-pages
git checkout master
handbook:
cat content/handbook/head.md content/website_data/index.md content/website_data/overview.md content/website_data/syllabus.md content/website_data/assessment.md content/website_data/marking_criteria.md content/website_data/task_01.md content/website_data/task_02.md content/website_data/task_03.md > handbook.md
pandoc --toc -s -H content/handbook/include.tex handbook.md -o content/handbook/handbook.pdf
rm handbook.md
test_stack:
conda activate gds
jupyter nbconvert --execute --stdout content/infrastructure/check_gds_stack.ipynb
source deactivate