Replies: 7 comments 2 replies
-
this sounds like |
Beta Was this translation helpful? Give feedback.
-
It looks like the astro docs website uses the built sitemap and then parses all the content within it with https://github.com/withastro/docs/blob/main/scripts/lint-linkcheck.ts Is this something that could be improved and happen during generation rather than after a build and released for all astro users to benefit from? |
Beta Was this translation helpful? Give feedback.
-
Related withastro/starlight#946 |
Beta Was this translation helpful? Give feedback.
-
This could make a nice integration, but I agree it would be a big win however it gets implemented |
Beta Was this translation helpful? Give feedback.
-
My experimental solution https://astro-digital-garden.stereobooster.com/recipes/detect-broken-links/ |
Beta Was this translation helpful? Give feedback.
-
https://lychee.cli.rs/ could be a great option |
Beta Was this translation helpful? Give feedback.
-
Body
Summary
As a content platform it would be an improvement if astro could have build time support for internal link validation
Background & Motivation
Link validation is important to provide a high quality experience to users of sites built with astro. Spelling mistakes or refactorings of internal pages or assets should not create a mess of 404's and extra work for the creator. Having the DX ability to be confident to merge a pull request that nothing breaks is very important.
The motivation is to give developers confidence and parity with similar tools to make migrating or choosing astro super easy.
Goals
A concise, bulleted-list outlining the intended goals of this RFC.
Example
https://github.com/HiDeoo/starlight-links-validator/tree/main/packages/starlight-links-validator
https://jekyllrb.com/docs/liquid/tags/#link
Beta Was this translation helpful? Give feedback.
All reactions