6512fb03fb8d49b400360471607526e0f055994b
[dygraphs.git] / scripts / 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 \
11 | tee /tmp/dygraphs-jsdocerrors.txt
12
13 if [ -s /tmp/dygraphs-jsdocerrors.txt ]; then
14 echo Please fix any jsdoc errors/warnings before sending patches.
15 fi
16
17 chmod -R a+rX jsdoc
18
19 echo Done