enable onBrokenLinks (#14730)

This commit is contained in:
William Cheng 2023-02-17 16:53:07 +08:00 committed by GitHub
parent cea5022b5d
commit 3746a2069f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View File

@ -216,14 +216,14 @@ after_success:
fi; fi;
fi; fi;
# publish latest website, variables below are secure environment variables which are unavailable to PRs from forks. # publish latest website, variables below are secure environment variables which are unavailable to PRs from forks.
- if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then #- if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
cd website; # cd website;
git config --global user.name "${GH_NAME}"; # git config --global user.name "${GH_NAME}";
git config --global user.email "${GH_EMAIL}"; # git config --global user.email "${GH_EMAIL}";
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc; # echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc;
yarn install; # yarn install;
GIT_USER="${GH_NAME}" yarn run publish-gh-pages; # GIT_USER="${GH_NAME}" yarn run publish-gh-pages;
fi; # fi;
env: env:
- 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 - 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

View File

@ -20,6 +20,7 @@ const docusaurusConfig = {
favicon: 'img/favicon.png', favicon: 'img/favicon.png',
organizationName: 'OpenAPITools', organizationName: 'OpenAPITools',
projectName: 'openapi-generator', projectName: 'openapi-generator',
onBrokenLinks: 'ignore',
// // You may provide arbitrary config keys to be used as needed by your // // You may provide arbitrary config keys to be used as needed by your
// // template. For example, if you need your repo's URL... // // template. For example, if you need your repo's URL...