From 3234efcf845957d65ae04197641b8795b469b6f4 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Mon, 9 May 2011 07:36:58 -0700 Subject: [PATCH] working generate-jsdoc script --- dygraph.js | 8 ++++---- generate-jsdoc.sh | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) 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 -- 2.7.4