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

Not on NPM #6

Open
kevreth opened this issue Dec 28, 2024 · 5 comments
Open

Not on NPM #6

kevreth opened this issue Dec 28, 2024 · 5 comments

Comments

@kevreth
Copy link

kevreth commented Dec 28, 2024

$ npm install astro-broken-links-checker
npm error code E404
npm error 404 Not Found - GET https://registry.npmjs.org/astro-broken-links-checker - Not found
npm error 404
npm error 404 'astro-broken-links-checker@*' is not in this registry.
npm error 404
npm error 404 Note that you can also install from a
npm error 404 tarball, folder, http url, or git url.
npm error A complete log of this run can be found in: /home/kev/.npm/_logs/2024-12-28T11_00_42_271Z-debug-0.log

@lilith
Copy link
Member

lilith commented Dec 28, 2024

I'm excited to see someone wanting to use this! I use a git ref right now. With zero stars, it isn't really out there. How did you discover it?

@kevreth
Copy link
Author

kevreth commented Dec 29, 2024

I don't recall exactly now. I was searching for replacements for Nuxt SEO since I'm migrating from Nuxt to Astro. I think it came up in Google. I hope you list it on NPM so it's usable in ordinary projects (assuming it's in usable state).

@lilith
Copy link
Member

lilith commented Dec 29, 2024 via email

@kevreth
Copy link
Author

kevreth commented Dec 29, 2024

I'm just looking for something to run during the build process to verify internal links like Nuxt SEO. Ohdear.app isn't designed to work during a build and is pricey.

If you're not going to put this on npm then you should probably remove the instruction in the README to install it via npm.

@kevreth
Copy link
Author

kevreth commented Dec 29, 2024

Oh I found it. ChatGPT recommended you!

Is there a product to use with Astro that can verify internal links like Nuxt SEO does?
ChatGPT said:
Yes, there are tools available for Astro that can verify internal links, similar to Nuxt SEO. One such tool is the "astro-broken-link-checker," an Astro integration that checks for broken links during the static build process. It validates all links in your HTML pages, logging any broken links to the console and a log file. To use it, install the package and add it to your Astro configuration file.

Another option is the "starlight-links-validator," a Starlight plugin that validates internal links in Markdown and MDX files. It checks links to other pages and hashes, ignoring external links, and runs during the production build.

These tools can help ensure the integrity of internal links in your Astro project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants