2020-04-05 02:26:14 +00:00
|
|
|
#!/bin/bash -ex
|
|
|
|
if [[ ! -d dart-sass ]]; then
|
|
|
|
echo "Downloading sass";
|
|
|
|
SASS_URL=https://github.com/sass/dart-sass/releases/download/1.26.3/dart-sass-1.26.3-linux-x64.tar.gz
|
|
|
|
wget $SASS_URL
|
|
|
|
tar xf `basename $SASS_URL`
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ ! -d bootstrap-4.4.1 ]]; then
|
|
|
|
echo "Downloading bootstrap"
|
|
|
|
BS_URL=https://github.com/twbs/bootstrap/archive/v4.4.1.zip
|
|
|
|
wget $BS_URL
|
|
|
|
unzip `basename $BS_URL`
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Compiling stylesheets"
|
2021-06-14 06:36:39 +00:00
|
|
|
./dart-sass/sass theme.scss:dist/theme.css --style compressed
|
2020-04-05 02:26:14 +00:00
|
|
|
|
|
|
|
echo "Generating HTML pages"
|
|
|
|
./generate.py
|
|
|
|
|
2021-06-15 04:56:36 +00:00
|
|
|
cp resources/* dist
|
2020-04-05 02:26:14 +00:00
|
|
|
rm dist/theme.css.map
|
2021-06-14 01:43:10 +00:00
|
|
|
|
2021-06-14 10:14:24 +00:00
|
|
|
mkdir -p dist/webfonts/
|
|
|
|
cp fontawesome-free-5.15.3-web/webfonts/fa-solid-900.woff2 \
|
|
|
|
fontawesome-free-5.15.3-web/webfonts/fa-brands-400.woff2 \
|
|
|
|
dist/webfonts
|
|
|
|
|
2021-06-14 01:43:10 +00:00
|
|
|
docker run --rm -v ${PWD}/docs:/docs squidfunk/mkdocs-material build
|
|
|
|
cp -r docs/site dist/docs
|