-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add external URL health checks in CI/CD
This commit adds automated checks for dead external URLs in the documentation during CI/CD pipeline. It configures `remark-lint-no-dead-urls` plugin with custom ignore patterns to handle false positives. This commit adds URL aliveness checks in CI/CD that was previously missing, adding ignore rules for false negatives. Changes: - Add missing external URL checking in GitHub workflow. - Add ignore patterns for false negatives. - Remove fail fast feature from quality checks to receive results from all commands.
- Loading branch information
1 parent
e8af173
commit f361b3a
Showing
4 changed files
with
23 additions
and
2 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
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,19 @@ | ||
import remarkLintNoDeadUrls from 'remark-lint-no-dead-urls'; | ||
|
||
/** @type {import('remark-lint-no-dead-urls').Options} */ | ||
const Options = { | ||
skipUrlPatterns: [ | ||
// These return 403 (Forbidden) to checks | ||
'codepen.io', // 'https://codepen.io' | ||
].map(buildUrlPattern), | ||
}; | ||
|
||
/** @type {Omit<import('unified-engine').Preset} */ | ||
export default { | ||
plugins: [[remarkLintNoDeadUrls, Options]], | ||
}; | ||
|
||
function buildUrlPattern(fqdn) { | ||
const escaped = fqdn.replace(/\./g, '\\.'); | ||
return `^https://${escaped}/.*$`; | ||
} |
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