-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·87 lines (73 loc) · 1.5 KB
/
build.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
85
86
87
#!/usr/bin/env bash -ex
cd $(dirname $0)
yarn
rm -rf dist
mkdir dist
for guide in $(ls guides | xargs basename -s .md); do
echo ${guide}
cp -r base dist/${guide}
npx showdown \
makehtml \
-i guides/${guide}.md \
-o dist/${guide}/content.mustache
jq -n \
--arg title ${guide} \
'{title: $title}' \
| npx mustache \
-p dist/${guide}/content.mustache \
- \
dist/${guide}/index.mustache \
> dist/${guide}/index.html
cp Staticfile dist/${guide}
rm dist/${guide}/*.mustache
done
#cp -r base dist/tdd
#
#npx showdown \
# makehtml \
# -i tdd.md \
# -o dist/tdd/content.mustache
#
#jq -n \
# --arg title tdd \
# '{title: $title}' \
#| npx mustache \
# -p dist/tdd/content.mustache \
# - \
# dist/tdd/index.mustache \
# > dist/tdd/index.html
#
#cp Staticfile dist/tdd
#
#rm dist/tdd/*.mustache
#pushd pairing
# npx showdown \
# makehtml \
# -i pairing_and_mobbing.md \
# -o content.mustache
#
# jq -n \
# --arg title pairing \
# '{title: $title}' \
# | npx mustache \
# -p content.mustache \
# - \
# ../base.mustache \
# > index.html
#popd
#
#pushd stories
# npx showdown \
# makehtml \
# -i stories.md \
# -o content.mustache
#
# jq -n \
# --arg title stories \
# '{title: $title}' \
# | npx mustache \
# -p content.mustache \
# - \
# ../base.mustache \
# > index.html
#popd