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