-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sh
executable file
·14 lines (12 loc) · 1.01 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
BASE=${1-/}
mkdir -p build
cp source/*.css source/*.svg source/*.js source/*.js.map source/CNAME build
echo | pandoc -o build/index.html --template source/index.html --metadata title="CSV on the Web" --variable base=$BASE
pandoc -o build/standards.html --template source/page.html.template -f markdown-native_divs source/standards.html --metadata title="Standards" --variable base=$BASE
pandoc -o build/tools.html --template source/tools.html.template source/tools.md --variable base=$BASE
mkdir -p build/guides
cp source/guides/*.png build/guides
pandoc -o build/guides.html --template source/page.html.template source/guides.md --variable base=$BASE
pandoc -o build/guides/why-use-csvw.html --template source/page.html.template -f markdown-native_divs source/guides/why-use-csvw.html --metadata title="Guides" --variable base=$BASE
pandoc -o build/guides/how-to-make-csvw.html --template source/page.html.template -f markdown-native_divs source/guides/how-to-make-csvw.html --metadata title="Guides" --variable base=$BASE