X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=push-to-web.sh;h=c41fd4211f067e511f394411370eee34fd33e06e;hb=dea29a4d4be3876830153021ed8825745dfcead9;hp=ba9d969b6f21f19baf614c3e828d0ecb4f5b16cc;hpb=14c9d5bb3d2a2d2fd3a329003e43ae58ba4c784a;p=dygraphs.git diff --git a/push-to-web.sh b/push-to-web.sh index ba9d969..c41fd42 100755 --- a/push-to-web.sh +++ b/push-to-web.sh @@ -1,15 +1,20 @@ #!/bin/bash # This script generates the combined JS file, pushes all content to a web site # and then reverts the combined file. +set -x site=$1 # Produce dygraph-combined.js. ./generate-combined.sh +# Generate documentation. +./generate-documentation.py > docs/options.html + # Copy everything to the site. -scp tests/*.html tests/*.js $site/tests/ \ +scp tests/*.html tests/*.js tests/*.png $site/tests/ \ && \ -scp dygraph*.js gadget.xml excanvas.js thumbnail.png docs/* $site/ +scp dygraph*.js gadget.xml excanvas.js flashcanvas.* thumbnail.png screenshot.png docs/* $site/ -# Revert changes to dygraph-combined.js -git co dygraph-combined.js +# Revert changes to dygraph-combined.js and docs/options.html +git checkout dygraph-combined.js +rm docs/options.html