1
0
mirror of synced 2025-12-19 18:10:59 -05:00
Files
docs/lib/excluded-links.js
Sarah Schneider ce33df1cd3 New broken link report (#16412)
* add linkinator npm package

* add new script that uses Linkinator

* reorg the excluded links file and update comments

* replace blc artifacts with linkinator artifacts in .gitignore

* update the scheduled workflow to use the new script

* dismantle BLC scripts

* add workflow_dispatch event so we can test this manually

* npm uninstall broken-link-checker

* use different exit codes depending on whether broken links are found
2020-11-10 15:28:44 -05:00

21 lines
712 B
JavaScript

// Linkinator treats the following as regex.
module.exports = [
// Skip GitHub search links.
'https://github.com/search?.*',
'https://github.com/github/gitignore/search?',
// These links require auth.
'https://github.com/settings/profile',
'https://github.com/github/docs/edit',
'https://github.com/github/insights-releases/releases/latest',
// Developer content uses these for examples; they should not be checked.
'http://localhost:1234',
'localhost:3000',
// Oneoff links that link checkers think are broken but are not.
'https://haveibeenpwned.com/',
'https://www.ilo.org/dyn/normlex/en/f?p=NORMLEXPUB:12100:0::NO::P12100_ILO_CODE:P029',
'http://www.w3.org/wiki/LinkHeader/'
]