Add JSHint and make dygraphs pass its checks.
[dygraphs.git] / push-to-web.sh
index aaf18bd..ff12e57 100755 (executable)
@@ -7,10 +7,15 @@ site=$1
 # Produce dygraph-combined.js.
 ./generate-combined.sh
 
+# Generate documentation.
+./generate-documentation.py > docs/options.html
+./generate-jsdoc.sh
+
 # Copy everything to the site.
-scp tests/*.html tests/*.js tests/*.png $site/tests/ \
+scp -r tests jsdoc $site \
 && \
 scp dygraph*.js gadget.xml excanvas.js thumbnail.png screenshot.png docs/* $site/
 
-# Revert changes to dygraph-combined.js
+# Revert changes to dygraph-combined.js and docs/options.html
 git checkout dygraph-combined.js
+rm docs/options.html