Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🛠 Tooling: Detect broken relative links at build or lint time #364

Open
3 tasks done
JoshuaKGoldberg opened this issue Feb 4, 2025 · 0 comments
Open
3 tasks done
Labels
area: tooling status: accepting prs Please, send a pull request to resolve this!

Comments

@JoshuaKGoldberg
Copy link
Owner

JoshuaKGoldberg commented Feb 4, 2025

/### Bug Report Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Overview

#362 happened because nothing around pnpm build or pnpm lint catches incorrect relative links. I'll want to add something to make sure no relative links point to 404s.

Additional Info

pnpm astro check doesn't report anything around them that I can spot.

Relevant discussion for Starlight upstream in: withastro/starlight#247 -> withastro/starlight#946. https://starlight-links-validator.vercel.app/ looks promising too. But I'm not on Starlight, just plain Astro.

💖

@JoshuaKGoldberg JoshuaKGoldberg added area: tooling status: accepting prs Please, send a pull request to resolve this! labels Feb 4, 2025
@JoshuaKGoldberg JoshuaKGoldberg changed the title 🛠 Tooling: Detect bbroken relative links at build or lint time 🛠 Tooling: Detect broken relative links at build or lint time Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tooling status: accepting prs Please, send a pull request to resolve this!
Projects
None yet
Development

No branches or pull requests

1 participant