2018-05-18 20:59:30 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
source ./scripts/common.sh
|
|
|
|
|
|
|
|
rm -rf $OUTPUT_DIR
|
|
|
|
rm -rf $STATIC_BUILD
|
|
|
|
rm -rf $BASEDIR/resources
|
2018-12-01 17:15:37 +00:00
|
|
|
mkdir -p $STATIC_BUILD/js $STATIC_BUILD/css
|
2018-05-18 20:59:30 +01:00
|
|
|
cp -r $BASEDIR/node_modules/lightgallery/dist/fonts $STATIC_BUILD
|
|
|
|
cp -r $STATIC_SRC/img $STATIC_BUILD/img
|
2018-06-17 12:03:33 +01:00
|
|
|
cp -r $BASEDIR/node_modules/lightgallery/dist/img/* $STATIC_BUILD/img
|
2018-12-16 14:51:54 +00:00
|
|
|
cp -r $BASEDIR/node_modules/@fortawesome/fontawesome-free/css/all.min.css $STATIC_BUILD/css/font-awesome.css
|
|
|
|
cp $BASEDIR/node_modules/lightgallery/dist/css/lightgallery.min.css $STATIC_BUILD/css/lightgallery.css
|
2018-12-01 17:15:37 +00:00
|
|
|
cp -r $BASEDIR/node_modules/@fortawesome/fontawesome-free/webfonts $STATIC_BUILD
|
2018-08-15 19:51:15 +01:00
|
|
|
|
2018-12-01 20:43:35 +00:00
|
|
|
cp $BASEDIR/node_modules/jquery/dist/jquery.min.js $STATIC_BUILD/js/jquery.js
|
2018-12-01 20:52:38 +00:00
|
|
|
cp $BASEDIR/node_modules/lightgallery/dist/js/lightgallery-all.min.js $STATIC_BUILD/js/lightgallery.js
|
2018-12-01 20:43:35 +00:00
|
|
|
cp $BASEDIR/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js $STATIC_BUILD/js/bootstrap.js
|
2018-08-15 19:51:15 +01:00
|
|
|
|
2018-08-18 11:38:22 +01:00
|
|
|
browserify $STATIC_SRC/js/index.js -o $STATIC_BUILD/js/app.js
|
2019-06-01 18:12:29 +01:00
|
|
|
browserify $STATIC_SRC/js/sentry.js -t envify -o $STATIC_BUILD/js/sentry.js
|
2019-10-29 18:49:42 +00:00
|
|
|
browserify $STATIC_SRC/js/mermaid.js -o $STATIC_BUILD/js/mermaid.js
|
2019-06-01 18:12:29 +01:00
|
|
|
|
2018-08-18 11:38:22 +01:00
|
|
|
cp -r $STATIC_SRC/scss $STATIC_BUILD/scss
|
2019-03-16 16:29:31 +00:00
|
|
|
hugo gen chromastyles --style=monokai > $STATIC_BUILD/css/highlight.css
|
2018-05-18 20:59:30 +01:00
|
|
|
|
2019-10-27 22:40:52 +00:00
|
|
|
hugo -vDEF --gc $@
|
2018-05-18 20:59:30 +01:00
|
|
|
|
|
|
|
cp $BASEDIR/static/keybase.txt $OUTPUT_DIR/keybase.txt
|
2019-02-07 19:28:19 +00:00
|
|
|
|
|
|
|
mkdir -p $OUTPUT_DIR/.well-known/matrix
|
|
|
|
cp $BASEDIR/static/matrix.json $OUTPUT_DIR/.well-known/matrix/server
|