blob: e5306e8a6b185464e32eca4d18c9330b4b3f7d31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/env bash
MARKDOWN_IN="$1"
[ -z "$MARKDOWN_IN" ] && { echo "Script requires one markdown argument."; exit 1; }
set -o errexit
set -o xtrace
pandoc --toc --template template.html -o index.html "$MARKDOWN_IN"
mv index.html /var/www/html/
cp -r vr_assets /var/www/html/
cp -r images /var/www/html/
|