From: Dan Vanderkam Date: Mon, 9 May 2011 14:36:58 +0000 (-0700) Subject: working generate-jsdoc script X-Git-Tag: v1.0.0~505 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=3234efcf845957d65ae04197641b8795b469b6f4;p=dygraphs.git working generate-jsdoc script --- diff --git a/dygraph.js b/dygraph.js index 90c93a9..661603c 100644 --- a/dygraph.js +++ b/dygraph.js @@ -89,7 +89,7 @@ Dygraph.AXIS_LINE_WIDTH = 0.3; Dygraph.LOG_SCALE = 10; Dygraph.LN_TEN = Math.log(Dygraph.LOG_SCALE); -/** @private (shut up, jsdoc!) */ +/** @private */ Dygraph.log10 = function(x) { return Math.log(x) / Dygraph.LN_TEN; } @@ -389,17 +389,17 @@ Dygraph.prototype.log = function(severity, message) { } }; -/** @private (shut up, jsdoc!) */ +/** @private */ Dygraph.prototype.info = function(message) { this.log(Dygraph.INFO, message); }; -/** @private (shut up, jsdoc!) */ +/** @private */ Dygraph.prototype.warn = function(message) { this.log(Dygraph.WARNING, message); }; -/** @private (shut up, jsdoc!) */ +/** @private */ Dygraph.prototype.error = function(message) { this.log(Dygraph.ERROR, message); }; diff --git a/generate-jsdoc.sh b/generate-jsdoc.sh index 36b6c50..1468cac 100755 --- a/generate-jsdoc.sh +++ b/generate-jsdoc.sh @@ -7,9 +7,10 @@ echo Generating JSDoc... java -jar jsdoc-toolkit/jsrun.jar \ jsdoc-toolkit/app/run.js \ -d=jsdoc -t=jsdoc-toolkit/templates/jsdoc \ - dygraph.js > /tmp/dygraphs-jsdocerrors.txt + dygraph.js \ +| tee /tmp/dygraphs-jsdocerrors.txt -if [ -n /tmp/dygraphs-jsdocerrors.txt ]; then +if [ -s /tmp/dygraphs-jsdocerrors.txt ]; then echo Please fix any jsdoc errors/warnings before sending patches. fi