mirror of
https://github.com/xemu-project/xemu-website.git
synced 2024-11-26 21:00:33 +00:00
32 lines
832 B
Bash
Executable File
32 lines
832 B
Bash
Executable File
#!/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 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
|