gh-pages.sh 302 B

123456789101112
  1. #!/bin/sh
  2. DIR=`dirname $0`
  3. TMP_DOC_DIR="/tmp/ref_docs"
  4. npm run docs \
  5. && rm -rf $TMP_DOC_DIR \
  6. && mkdir -p $TMP_DOC_DIR \
  7. && cp -Lrf {"$DIR/index.html","$DIR/images","$DIR/scripts","$DIR/stylesheets"} $TMP_DOC_DIR \
  8. && git checkout gh-pages \
  9. && cp -Lrf $TMP_DOC_DIR/* . \
  10. && echo "done"