convenience open

This commit is contained in:
Devin Howard 2016-10-12 11:11:33 +08:00
parent 9352ecc446
commit 440011cba9

View file

@ -10,5 +10,8 @@ if [[ ! -x ./node_modules/.bin/raml2html ]]; then
fi
./node_modules/.bin/raml2html -i ./doc/api/api.raml -o ./public/api/index.html -t doc/api/templates/template.nunjucks
if [[ -x $(which open) ]]; then
open public/api/index.html
fi
cd $OLD_DIR