Skip to content

Commit 32afc24

Browse files
committed
Make link check mandatory and increase time-out, also fix broken link to corp website with trailing slash
1 parent 0d45548 commit 32afc24

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎src/components/Footer/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ const year = new Date().getFullYear()
168168
<span class="ml-4">
169169
<a
170170
rel="me"
171-
href={`${getSiteUrl()}/`}
171+
href={getSiteUrl()}
172172
class="text-text underline decoration-dotted decoration-text underline-offset-4 hover:text-secondary hover:decoration-secondary focus:text-secondary focus:decoration-secondary focus:outline-none"
173173
>
174174
{contactData.company.name}

‎src/lib/config/linkValidator.ts‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const linkValidatorPlugin = linkValidator({
44
checkExternal: true,
55
exclude: [
66
/**
7-
* Company social network links are manually maintained, rated
7+
* Company social network links are manually maintained, rate
88
* limited in CI so hard to check automatically
99
*/
1010
'https://bsky.app/profile/webstackdev.bsky.social',
@@ -17,13 +17,19 @@ export const linkValidatorPlugin = linkValidator({
1717
'https://www.linkedin.com/company/webstack-builders',
1818
'https://www.youtube.com/@webstackbuilders',
1919
'https://x.com/WebstackDev',
20-
/** Requires HEAD request, not GET */
20+
/** Requires HEAD request, not GET. Used in Add-to-Calendar component. */
2121
'https://outlook.office.com/calendar/0/deeplink/compose',
2222
/** Rate-limited URLs that will always fail */
2323
'https://www.npmjs.com',
2424
/** Dummy link in demo page */
2525
'/path/to#my-blob',
26+
/** Skip any links in testing-only pages */
27+
'https://www.webstackbuilders.com/testing/*',
28+
/** Skip hard-coded site URLs due to timeouts from CI to Vercel */
29+
'https://www.webstackbuilders.com',
30+
'https://www.webstackbuilders.com/rss.xml',
2631
],
32+
externalTimeout: 15000,
2733
failOnBrokenLinks: true,
2834
verbose: true,
2935
})

‎src/styles/COLOR_INVENTORY.md‎

Whitespace-only changes.

0 commit comments

Comments
 (0)