-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
56d9b5b
commit 57034f7
Showing
5 changed files
with
37 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
This is a set of patterns which the broken link checker should ignore when making a check. | ||
Given a page dog.html that contains the following three links: | ||
- /animals/cat.html | ||
- /animals/horse.html | ||
- /animals/capybara.html | ||
If an item in IGNORE_PATTERNS contains 'capybara', it will ignore the third link. | ||
If an item in IGNORE_PATTERNS contains 'animals', it will ignore ALL the links. | ||
Note that it's the target URL that checks the ignore pattern. If you included | ||
'dog' in the IGNORE_PATTERNS in the example above, it would still test dog.html | ||
for broken links it contains, but block testing dog.html as a destination. | ||
Be very careful of unintended consequences when adding these patterns. Be | ||
sure you are targeting what you want to ignore precisely. | ||
*/ | ||
const IGNORE_PATTERNS = [ | ||
/\/events($|\/)?/, // This ignores all links to Event and Event Listing pages. | ||
]; | ||
|
||
module.exports = { | ||
IGNORE_PATTERNS, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters