Skip to content

Commit 3746a20

Browse files
authored
enable onBrokenLinks (#14730)
1 parent cea5022 commit 3746a20

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.travis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,14 +216,14 @@ after_success:
216216
fi;
217217
fi;
218218
# publish latest website, variables below are secure environment variables which are unavailable to PRs from forks.
219-
- if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
220-
cd website;
221-
git config --global user.name "${GH_NAME}";
222-
git config --global user.email "${GH_EMAIL}";
223-
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc;
224-
yarn install;
225-
GIT_USER="${GH_NAME}" yarn run publish-gh-pages;
226-
fi;
219+
#- if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
220+
# cd website;
221+
# git config --global user.name "${GH_NAME}";
222+
# git config --global user.email "${GH_EMAIL}";
223+
# echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc;
224+
# yarn install;
225+
# GIT_USER="${GH_NAME}" yarn run publish-gh-pages;
226+
# fi;
227227

228228
env:
229229
- DOCKER_GENERATOR_IMAGE_NAME=openapitools/openapi-generator-online DOCKER_CODEGEN_CLI_IMAGE_NAME=openapitools/openapi-generator-cli NODE_ENV=test CC=gcc-5 CXX=g++-5

website/docusaurus.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const docusaurusConfig = {
2020
favicon: 'img/favicon.png',
2121
organizationName: 'OpenAPITools',
2222
projectName: 'openapi-generator',
23+
onBrokenLinks: 'ignore',
2324

2425
// // You may provide arbitrary config keys to be used as needed by your
2526
// // template. For example, if you need your repo's URL...

0 commit comments

Comments
 (0)