blob: 9c2fa92238856570762c8c6add3f09c8c78a9191 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
CONFIG=$1
CONTENT_DIR=$2
OUTPUT_DIR=$3
cat $1 |
jq -r '.[] | .content, .header, .url' |
while read CONTENT_FILE
do
read HEADER
read OUTPUT_FILE
if [ -n "$CONTENT_FILE" ]
then
python scripts/statics-compile.py $CONTENT_DIR/$CONTENT_FILE "$HEADER" > $OUTPUT_DIR/$OUTPUT_FILE
python scripts/menus-write.py $OUTPUT_DIR/$OUTPUT_FILE $OUTPUT_DIR/.menu.html
fi
done
|