This commit is contained in:
Sarah Schneider 2021-01-22 16:05:29 -05:00
Родитель f1b2a41a26
Коммит 7cc8b3bbd1
2 изменённых файлов: 11 добавлений и 0 удалений

1
.github/workflows/link-check-test.yml поставляемый
Просмотреть файл

@ -38,6 +38,7 @@ jobs:
name: Install
run: npm ci
## TODO
# - if: ${{ github.repository == 'github/docs-internal' && needs.see_if_should_skip.outputs.should_skip != 'true' }}
# name: Clone early access
# run: npm run heroku-postbuild

Просмотреть файл

@ -4,8 +4,18 @@ const linkinator = require('linkinator')
const checker = new linkinator.LinkChecker()
const { deprecated } = require('../lib/enterprise-server-releases')
// [start-readme]
//
// This script runs in CI via GitHub Action to check all *internal* links in English content,
// not including deprecated Enterprise Server content. This is different from script/check-english-links.js,
// which checks *all* links in the site, both internal and external, and is much slower.
//
// [end-readme]
const config = {
path: 'http://localhost:4002/en',
// Use concurrency = 10 to optimize for Actions
// See https://github.com/JustinBeckwith/linkinator/issues/135#issuecomment-623240879
concurrency: 10,
recurse: true,
linksToSkip: [