1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-09-20 14:01:55 +00:00
musix-oss/node_modules/ref/docs/gh-pages.sh

13 lines
302 B
Bash
Raw Normal View History

2020-03-03 20:30:50 +00:00
#!/bin/sh
DIR=`dirname $0`
TMP_DOC_DIR="/tmp/ref_docs"
npm run docs \
&& rm -rf $TMP_DOC_DIR \
&& mkdir -p $TMP_DOC_DIR \
&& cp -Lrf {"$DIR/index.html","$DIR/images","$DIR/scripts","$DIR/stylesheets"} $TMP_DOC_DIR \
&& git checkout gh-pages \
&& cp -Lrf $TMP_DOC_DIR/* . \
&& echo "done"