Closed lorenzolewis closed 1 year ago
Good catch! Thanks for the thorough report as usual 🙌
This should be fixed in the new v0.3.0
. I ended up literally checking the build output directory which should be a more reliable source of truth and should also account for potential other integrations adding files to the build output directory.
Describe the bug
When linking to a non-route asset (such as something in the
public
folder), this plugin will treat them as a broken link.To Reproduce
public
(i.e.public/data.csv
)[file](/data.csv)
)Expected behavior
Maybe this could ignore any links that end in a file extension? I'm not sure if special exceptions would need to be made for
.md
,.mdx
,.html
, and other common extensions that might be left behind as a result of someone migrating from a documentation platform that might expect them.How often does this bug happen?
Every time
System Info
"astro": "^2.10.14", "@astrojs/starlight": "^0.7.3", "starlight-links-validator": "^0.2.0"
Additional Context
No response