X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=push-to-web.sh;h=47352c527515b2ef6d3818a3b31eea34418d1bd7;hb=ef77580eb679c07e2b18111c66688bb342e1fb9f;hp=bd5162277591beb6a3f67a46340ad43bccc31268;hpb=38ad22de8c992203819dfd12c85b373bbdf744c0;p=dygraphs.git diff --git a/push-to-web.sh b/push-to-web.sh index bd51622..47352c5 100755 --- a/push-to-web.sh +++ b/push-to-web.sh @@ -18,6 +18,12 @@ site=$1 chmod a+r docs/options.html if [ -s docs/options.html ] ; then ./generate-jsdoc.sh + ./generate-download.py > docs/download.html + + temp_dir=$(mktemp -d /tmp/dygraphs-docs.XXXX) + cd docs + ./ssi_expander.py $temp_dir + cd .. # Make sure everything will be readable on the web. # This is like "chmod -R a+rX", but excludes the .git directory. @@ -26,11 +32,13 @@ if [ -s docs/options.html ] ; then # Copy everything to the site. rsync -avzr gallery common tests jsdoc experimental plugins $site \ && \ - rsync -avzr dygraph*.js gadget.xml excanvas.js thumbnail.png screenshot.png docs/* $site/ + rsync -avzr --copy-links dashed-canvas.js stacktrace.js dygraph*.js gadget.xml excanvas.js thumbnail.png screenshot.png $temp_dir/* $site/ else echo "generate-documentation.py failed" fi -# Revert changes to dygraph-combined.js and docs/options.html +# Revert changes to dygraph-combined.js and docs. git checkout dygraph-combined.js +git checkout docs/download.html rm docs/options.html +rm -rf $temp_dir