Skip to content

Commit 129ff13

Browse files
ci: apply automated fixes
1 parent 799e2f7 commit 129ff13

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/verify-links.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function relativeLinkExists(link: string, file: string): boolean {
6262
// Transform /docs/framework/{framework}/examples/ to /examples/{framework}/
6363
absPath = absPath.replace(
6464
/\/docs\/framework\/([^/]+)\/examples\//,
65-
'/examples/$1/',
65+
'/examples/$1/'
6666
)
6767
// For examples, we want to check if the directory exists
6868
exists = existsSync(absPath) && statSync(absPath).isDirectory()
@@ -103,17 +103,17 @@ async function verifyMarkdownLinks() {
103103
})
104104

105105
if (relativeLinks.length > 0) {
106-
relativeLinks.forEach((link) => {
106+
relativeLinks.forEach(link => {
107107
relativeLinkExists(link, file)
108108
})
109109
}
110110
}
111111

112112
if (errors.length > 0) {
113113
console.log(`\n❌ Found ${errors.length} broken links:`)
114-
errors.forEach((err) => {
114+
errors.forEach(err => {
115115
console.log(
116-
`${err.file}\n link: ${err.link}\n resolved: ${err.resolvedPath}\n why: ${err.reason}\n`,
116+
`${err.file}\n link: ${err.link}\n resolved: ${err.resolvedPath}\n why: ${err.reason}\n`
117117
)
118118
})
119119
process.exit(1)

0 commit comments

Comments
 (0)