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 914d7c45..7ba196e2 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,9 @@ "fix": "gts fix && eslint --fix '**/*.js'", "prepare": "npm run compile", "pretest": "npm run compile", - "presystem-test": "npm run compile" + "presystem-test": "npm run compile", + "docs-test": "blcl docs -r --exclude www.googleapis.com", + "predocs-test": "npm run docs" }, "dependencies": { "@google-cloud/common": "^0.30.0", @@ -75,6 +77,7 @@ "prettier": "^1.13.5", "proxyquire": "^2.0.1", "source-map-support": "^0.5.6", - "typescript": "~3.3.0" + "typescript": "~3.3.0", + "broken-link-checker-local": "^0.2.0" } }