From 440011cba964bd4e4255690a3b0a43660ca4f9c7 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Wed, 12 Oct 2016 11:11:33 +0800 Subject: [PATCH] convenience open --- bin/build-apidocs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/build-apidocs.sh b/bin/build-apidocs.sh index 97b73cda..28931b2f 100755 --- a/bin/build-apidocs.sh +++ b/bin/build-apidocs.sh @@ -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