Test non-existent divs
[dygraphs.git] / scripts / generate-jsdoc.sh
... / ...
CommitLineData
1#!/bin/bash
2#
3# Generates JSDoc in the /jsdoc dir. Clears any existing jsdoc there.
4
5rm -rf jsdoc
6echo Generating JSDoc...
7java -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
13if [ -s /tmp/dygraphs-jsdocerrors.txt ]; then
14 echo Please fix any jsdoc errors/warnings before sending patches.
15fi
16
17chmod -R a+rX jsdoc
18
19echo Done