-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile.sh
executable file
·84 lines (68 loc) · 1.53 KB
/
compile.sh
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
#!/usr/bin/env bash
set -e
set -o pipefail
declare -a files=(
"contents"
"Lean/setup"
"Lean/naming"
"Lean/types"
"Lean/functions"
"Lean/algorithms"
"Lean/other"
"Lean/debugging"
"Types/introduction"
"Types/universe"
"Types/relations"
"Types/equality"
"Types/operations"
"Types/product"
"Types/functions"
"Proofs/proofsAsData"
"Proofs/variations"
"Proofs/patterns"
"Proofs/equational"
"Proofs/equational2"
"Logic/introduction"
"Logic/logicBasics"
"Logic/equality"
"Logic/laws"
"Logic/decidability"
"Algebra/introduction"
"Algebra/sets"
"Algebra/order"
"Algebra/groups"
"Algebra/groups2"
"Algebra/groupMorphisms"
"Algebra/rings"
"Algebra/rings2"
"Algebra/ringMorphisms"
"Algebra/fields"
"Algebra/fields2"
"Algebra/fieldMorphisms"
"Algebra/numbers"
"Category/introduction"
"Category/category"
"Category/morphisms"
"Category/functors"
"Category/naturalTransformation"
"Category/yoneda"
"AlgTopos/introduction"
"HoTT/introduction"
"HoTT/homotopy"
"AppliedTypes/introduction"
"AppliedTypes/godels_t"
"AppliedTypes/system_f"
"AppliedTypes/bitcoin"
"AppliedTypes/verified_programming"
)
rm -rf build html tmp .lean
mkdir html .lean
cd src || exit 1
for i in "${files[@]}"; do
echo "Generating HTML for ${i}.md"
pandoc -s --mathjax --css=../css/agda.css --from=markdown+smart --to=html --metadata pagetitle="${i}" --columns=120 -o "../html/${i/\//.}.html" "${i}.md"
done
cd .. || exit 1
# Copy resources
cp -pr ./artwork ./html/
cp -pr ./css ./html