Getting Started
A Starlight plugin to validate internal links in Markdown and MDX files.
- Validate internal links to other pages
- Validate internal links to hashes in other pages
- Validate internal links to hashes in the same page
- Ignore external links
- Run only during a production build
Prerequisites
You will need to have a Starlight website set up. If you don’t have one yet, you can follow the “Getting Started” guide in the Starlight docs to create one.
Installation
-
Starlight Links Validator is a Starlight plugin. Install it using your favorite package manager:
-
Configure the plugin in your Starlight configuration in the
astro.config.mjs
file. -
Run a production build to validate all internal links in your Markdown and MDX files.
The Starlight Links Validator plugin behavior can be tweaked using various configuration options.