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

Detect external broken links on build #3193

Closed
adrianmcli opened this issue Aug 3, 2020 · 6 comments
Closed

Detect external broken links on build #3193

adrianmcli opened this issue Aug 3, 2020 · 6 comments
Labels
closed: wontfix A fix will bring significant overhead, or is out of scope (for feature requests) feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future.

Comments

@adrianmcli
Copy link

adrianmcli commented Aug 3, 2020

🚀 Feature

Partly inspired by #3048, it would be nice to detect external links in the Markdown docs and signal to the user that they are broken.

Ref projects:

Have you read the Contributing Guidelines on issues?

Yes

Motivation

If you want good docs, you probably don't want broken links.

Pitch

We should signal users if any external links are invalid on build.

A by-pass flag would be helpful because there might be cases broken external links are ok (e.g. pages that anticipate a link to become valid later on).

This additional check would be really helpful. I'm suggesting this feature because I am building a docs site on top of Docusaurus and I found a need for this personally. I was actually going to use markdown-link-checker with CI. But if this can be built-in, then it saves a LOT of work.

@adrianmcli adrianmcli added feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. status: needs triage This issue has not been triaged by maintainers labels Aug 3, 2020
@anshulrgoyal
Copy link
Contributor

anshulrgoyal commented Aug 3, 2020

It will increase build time and I think it makes less sense since external link may become dead after the build.

@slorber
Copy link
Collaborator

slorber commented Aug 3, 2020

Hi,

That's an interesting feature but I don't think we should make it part of Docusaurus.

This would make the build unstable, slower, dependant of the availability and speed of external link, + as. @anshulrgoyal said they can go offline after the build anyway so you actually prevent nothing.

You definitively can add this easily on your own with the package you linked if you really need this, and we wouldn't really do a better job including this in Docusaurus.

@slorber slorber closed this as completed Aug 3, 2020
@adrianmcli
Copy link
Author

I think that's a fair answer, thanks for taking a look!

@adrianmcli
Copy link
Author

NTS: If I ever figure out how to make markdown-link-check work with Docusaurus, I should offer to make additional documentation that shows how to integrate it with Docusaurus' conventions (i.e. ignoring links to internal docs).

@anshulrgoyal
Copy link
Contributor

@adrianmcli it is very easy to create a new remark plugin for it. I have created one for image and one for assets u can take a look.

@anshulrgoyal
Copy link
Contributor

Here is my pr for assets check #3096

@Josh-Cena Josh-Cena added closed: wontfix A fix will bring significant overhead, or is out of scope (for feature requests) and removed status: needs triage This issue has not been triaged by maintainers labels Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: wontfix A fix will bring significant overhead, or is out of scope (for feature requests) feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
Projects
None yet
Development

No branches or pull requests

4 participants