Skip to content

Commit efa10ce

Browse files
Script to update dottydoc CSS without running sbt
1 parent 120f423 commit efa10ce

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

doc-tool/bootstrap-theme/build.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
#!/bin/sh
22
cd "$(dirname "$0")"
3+
if [ ! -d "node_modules" ]; then
4+
npm install
5+
fi
36
npm run build
4-
echo "Copying css file..."
7+
echo "Copying CSS result..."
58
cp target/bootstrap.min.css ../resources/css/bootstrap.min.css
6-
echo "Bootstrap css updated."
9+
10+
# Update the generated website without running sbt
11+
gen_dir=../../docs/_site/css
12+
if [ -d "$gen_dir" ]; then
13+
cp ../resources/css/* $gen_dir/
14+
fi
15+
16+
echo "Bootstrap CSS updated."

0 commit comments

Comments
 (0)