1
0
mirror of synced 2025-12-19 18:10:59 -05:00
Files
docs/lib/excluded-links.js
Evan Bonsignori 7b4429418b Migrate links check to JS pattern (#30175)
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-10-17 21:47:21 +00:00

44 lines
1.8 KiB
JavaScript

/**
* This file exports a mix of strings and of regexes. Linkinator relies
* on this in `script/check-english-links.js` when we encounter external
* links that we *specifically ignore*. That means, that URLs or patterns
* mentioned in this file might appear within our content but we don't
* bother checking that they actually work.
*/
/* eslint-disable prefer-regex-literals */
export default [
// Skip GitHub search links.
// E.g. https://github.com/search?foo=bar
new RegExp('https://github\\.com/search\\?'),
new RegExp('https://github\\.com/github/gitignore/search\\?'),
// These links require auth.
new RegExp('https://github\\.com/settings/profile'),
new RegExp('https://github\\.com/github/docs/edit'),
new RegExp('https://github\\.com/github/insights-releases/releases/latest'),
new RegExp('https://classroom\\.github.com/videos'),
// 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',
'https://www.linkedin.com/company/github',
'https://www.facebook.com/',
'https://ko-fi.com/',
'https://en.liberapay.com/',
'https://nbviewer.jupyter.org/github/bokeh/bokeh-notebooks/blob/main/tutorial/06%20-%20Linking%20and%20Interactions.ipynb',
'https://www.vmware.com/products/esxi-and-esx.html',
'https://www.ecfr.gov/cgi-bin/text-idx?SID=ad384e1f1e017076f8c0136f322f0a4c&mc=true&node=pt15.2.744&rgn=div5',
'https://wiki.oasis-open.org/security',
'https://www.ipaddressguide.com/cidr',
'https://crates.io/',
'https://opensource.org/about',
'https://www.openstreetmap.org/user/new',
'https://wiki.debian.org/chroot',
'https://www.adobe.com/products/coldfusion-builder.html',
'https://developer.android.com/studio',
'https://lastpass.com/',
'https://lastpass.com/auth/',
]