Use Hugo extended for Sass/CSS (#13113)

This commit is contained in:
Luc Perkins
2019-06-09 06:31:07 -07:00
committed by Kubernetes Prow Robot
parent c133a321c7
commit 654db85168
20 changed files with 21 additions and 74 deletions
-38
View File
@@ -1,38 +0,0 @@
#!/bin/bash
if [[ $# -eq 0 ]] ; then
echo "You must specify a command from the following: build, develop"
exit 0
fi
__build() {
echo "Building Kubernetes website CSS from Sass sources..."
for filename in case-study-styles styles; do
echo $filename
sass \
--style=compressed \
sass/$filename.sass static/css/$filename.css
done
echo "Done building CSS!"
}
__develop() {
echo "Watching Sass sources for changes..."
sass \
--watch \
sass/styles.sass:static/css/styles.css \
sass/case-study-styles.sass:static/css/case-study-styles.css
}
case $1 in
build)
__build
;;
develop)
__develop
;;
esac