forked from xemu-project/xemu-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·31 lines (25 loc) · 835 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/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"
./dart-sass/sass theme.scss:dist/theme.css --style compressed
echo "Generating HTML pages"
./generate.py
cp -r resources/* dist
rm dist/theme.css.map
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
docker run --rm -v ${PWD}/docs:/docs squidfunk/mkdocs-material build
cp -r docs/site dist/docs