Closed steveoh closed 10 months ago
Thanks for your feedback.
This validator is a Starlight plugin as it relies on the Starlight plugin API to get Starlight specific configuration informations to provide a better validation experience, specifically around the i18n features of Starlight. Such values are not available in contexts outside of the Starlight plugin API so some features will not be available if the validator was more generic.
I think a more generic validator for Astro (and no Starlight) could totally exists as an Astro integration, this does not have to be a part of Astro itself. It could even validate external links too like you mentioned (which is something I am not interested in doing in this validator).
Would you mind sharing some of your knowledge on the subject and how it could be achieved as an integration in this discussion? https://github.com/withastro/roadmap/discussions/739
Here are the few points I can think of that could help you to get started:
0.4.2
of this plugin which at the time was not a Starlight plugin but an integration and how it collected/validated internal links:
astro:config:setup
integration hook to collect all the internal linksastro:build:done
integration hook to validate all the collected links
Is your feature request related to a problem?
https://github.com/withastro/roadmap/discussions/739
Describe the solution you'd like
I would like internal link checking to be opt in with all astro websites and external links made available somehow so we could check their response codes.
Describe alternatives you've considered
nothing available at the moment during build time.
Additional Context
I have a discussion item open with astro but it has zero traction.