X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=generate-jsdoc.sh;h=6512fb03fb8d49b400360471607526e0f055994b;hb=e43d4d238ae016b477aee3f60f1707fb4effacd3;hp=32755459c972846073a199bee0b9ea34dafddff8;hpb=cf180220e31315f7a4f4595b80822a661326776c;p=dygraphs.git diff --git a/generate-jsdoc.sh b/generate-jsdoc.sh old mode 100644 new mode 100755 index 3275545..6512fb0 --- a/generate-jsdoc.sh +++ b/generate-jsdoc.sh @@ -3,7 +3,17 @@ # Generates JSDoc in the /jsdoc dir. Clears any existing jsdoc there. rm -rf jsdoc +echo Generating JSDoc... java -jar jsdoc-toolkit/jsrun.jar \ jsdoc-toolkit/app/run.js \ - -a -d=jsdoc -t=jsdoc-toolkit/templates/jsdoc \ - dygraph.js + -d=jsdoc -t=jsdoc-toolkit/templates/jsdoc \ + dygraph.js \ +| tee /tmp/dygraphs-jsdocerrors.txt + +if [ -s /tmp/dygraphs-jsdocerrors.txt ]; then + echo Please fix any jsdoc errors/warnings before sending patches. +fi + +chmod -R a+rX jsdoc + +echo Done