X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=push-to-web.sh;h=7aca0f4fd51a114281d7154110e456ab3eb6fe59;hb=54425b14df388e9337a1d77876512bb60ba74c3b;hp=ba9d969b6f21f19baf614c3e828d0ecb4f5b16cc;hpb=14c9d5bb3d2a2d2fd3a329003e43ae58ba4c784a;p=dygraphs.git diff --git a/push-to-web.sh b/push-to-web.sh index ba9d969..7aca0f4 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 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