diff --git a/build/docs.sh b/build/docs.sh index 4c0c7f21..082132e8 100755 --- a/build/docs.sh +++ b/build/docs.sh @@ -26,5 +26,9 @@ cd jsdoc-toolkit java -jar jsrun.jar app/run.js -c=conf/$MODE.conf -D="renderMode:$MODE" cd .. -#build paper.js library for documentation -./preprocess.sh ../src/paper.js ../dist/docs/resources/js/paper.js "-DBROWSER" stripped \ No newline at end of file +if [ $MODE == "docs" ] +then + # Build paper.js library for documentation + ./preprocess.sh ../src/paper.js ../dist/docs/resources/js/paper.js \ + "-DBROWSER" stripped +fi