cleanup, jsdoc warning message
[dygraphs.git] / generate-jsdoc.sh
1 #!/bin/bash
2 #
3 # Generates JSDoc in the /jsdoc dir. Clears any existing jsdoc there.
4
5 rm -rf jsdoc
6 echo Generating JSDoc...
7 java -jar jsdoc-toolkit/jsrun.jar \
8 jsdoc-toolkit/app/run.js \
9 -d=jsdoc -t=jsdoc-toolkit/templates/jsdoc \
10 dygraph.js > /tmp/dygraphs-jsdocerrors.txt
11
12 if [ -n /tmp/dygraphs-jsdocerrors.txt ]; then
13 echo Please fix any jsdoc errors/warnings before sending patches.
14 fi
15
16 echo Done