Add support for closest-series highlighting
[dygraphs.git] / push-to-web.sh
... / ...
CommitLineData
1#!/bin/bash
2# This script generates the combined JS file, pushes all content to a web site
3# and then reverts the combined file.
4
5if [ "$1" == "" ] ; then
6 echo "usage: $0 destination"
7 exit 1
8fi
9
10set -x
11site=$1
12# Produce dygraph-combined.js.
13./generate-combined.sh
14
15# Generate documentation.
16./generate-documentation.py > docs/options.html
17if [ -s docs/options.html ] ; then
18 ./generate-jsdoc.sh
19
20 # Copy everything to the site.
21 scp -r gallery common tests jsdoc experimental $site \
22 && \
23 scp dygraph*.js gadget.xml excanvas.js thumbnail.png screenshot.png docs/* $site/
24else
25 echo "generate-documentation.py failed"
26fi
27
28# Revert changes to dygraph-combined.js and docs/options.html
29git checkout dygraph-combined.js
30rm docs/options.html