diff --git a/.kokoro/docs.sh b/.kokoro/docs.sh index ea6e514f..a4f31879 100755 --- a/.kokoro/docs.sh +++ b/.kokoro/docs.sh @@ -22,12 +22,4 @@ cd $(dirname $0)/.. npm install -npm run docs - -# Check broken links -BIN=./node_modules/.bin - -npm install broken-link-checker -npm install http-server -$BIN/http-server -p 8080 docs/ & -$BIN/blc http://localhost:8080 -r --exclude www.googleapis.com +npm run docs-test diff --git a/package.json b/package.json index 90451a2b..04912340 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,9 @@ "system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000", "test-no-cover": "mocha test/*.js", "test": "npm run cover", - "fix": "eslint --fix '**/*.js'" + "fix": "eslint --fix '**/*.js'", + "docs-test": "blcl docs -r --exclude www.googleapis.com", + "predocs-test": "npm run docs" }, "dependencies": { "@google-cloud/promisify": "^0.3.0", @@ -62,6 +64,7 @@ "power-assert": "^1.6.0", "prettier": "^1.13.6", "sinon": "^7.0.0", - "uuid": "^3.3.0" + "uuid": "^3.3.0", + "broken-link-checker-local": "^0.2.0" } }