Skip to content

Commit 9a0b15f

Browse files
committed
add link validator
1 parent a8630cc commit 9a0b15f

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

astro.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { defineConfig, envField } from 'astro/config';
33
import starlight from '@astrojs/starlight';
44
import starlightUtils from '@lorenzo_lewis/starlight-utils';
5+
import starlightLinksValidator from 'starlight-links-validator'
56

67
import markdoc from '@astrojs/markdoc';
78

@@ -60,6 +61,9 @@ export default defineConfig({
6061
alt: 'LocalStack',
6162
},
6263
plugins: [
64+
starlightLinksValidator({
65+
errorOnRelativeLinks: false,
66+
}),
6367
starlightUtils({
6468
multiSidebar: {
6569
switcherStyle: 'dropdown',

package-lock.json

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"react": "^19.1.0",
2929
"react-dom": "^19.1.0",
3030
"sharp": "^0.32.5",
31+
"starlight-links-validator": "^0.17.0",
3132
"tailwind-merge": "^3.2.0",
3233
"tailwindcss": "^4.1.6"
3334
},

0 commit comments

Comments
 (0)