There is a plugin for a remark Link check: https://www.gatsbyjs.org/packages/gatsby-remark-check-links/
Can this also work on the Gatsby docs/Blog?
Or as a PR check?
new edit:
check local links
., .. or /check local anchors
gatsby develop/gatsby build via a graphql query to query all headers?check internal links for trailing slashes (because breadcrumbs and selected sidebar is depend on it)
check external links
check internal link files (like doc-links.yml, redirects.yml)
[abc](docs/wronglink) but they have to be [abc](docs/rightlink.md)[abc](/docs/wronglink)[abc](https://www.gatsbyjs.org/docs/wronglink)Hiya!
This issue has gone quiet. Spooky quiet. 馃懟
We get a lot of issues, so we currently close issues after 30 days of inactivity. It鈥檚 been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 馃挭馃挏
Hiya!
This issue has gone quiet. Spooky quiet. 馃懟
We get a lot of issues, so we currently close issues after 30 days of inactivity. It鈥檚 been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 馃挭馃挏
any opinion about this?
as seen in the linked issues there some places where 404 exists without any notification when a PR is done...
closing #18908 as duplicate of this Issue.
copy some comments from duplicate
Summary
It would be nice to have some link check on the gatsbyjs.org site maybe as validator while an PR or better also on
gatsby developto find old broken linksCaveeats
I know we can not find and check all links because some are generated from sourced data.
Motivation
During Hacktoberfest I see also some broken links reported. Example #18905
It would be nice to avoid broken links from beginning.
note
I don't mean the broken links reported for viewing files on github
_Originally posted by @muescha in https://github.com/gatsbyjs/gatsby/issues/18908#issue-510606085_
Maybe putting something like Hyperlink into a GitHub Action could be a good solution to this so it would run similar to how the site showcase validator works right now.
_Originally posted by @lannonbr in https://github.com/gatsbyjs/gatsby/issues/18908#issuecomment-544929178_
Hiya!
This issue has gone quiet. Spooky quiet. 馃懟
We get a lot of issues, so we currently close issues after 30 days of inactivity. It鈥檚 been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 馃挭馃挏
it should also check the anchor links to headers
Hiya!
This issue has gone quiet. Spooky quiet. 馃懟
We get a lot of issues, so we currently close issues after 30 days of inactivity. It鈥檚 been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 馃挭馃挏
there should also an internal anchor link checker for headings.
see:
fix (www) additional links to "install nodejs"fix(www) - Fix anchor link in tutorial sidebarHiya!
This issue has gone quiet. Spooky quiet. 馃懟
We get a lot of issues, so we currently close issues after 30 days of inactivity. It鈥檚 been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 馃挭馃挏
helpful to find this errors:
update link to json sectionthe checker should also check if all pages are in the TOC files for the sections. for example in www/src/data/sidebars/doc-links.yaml
related issue:
fix(docs): Adding a Redux Store to TOC the checker should also check if all pages are in the TOC files for the sections. for example in www/src/data/sidebars/doc-links.yaml
I don't think this needs to be part of it, since there could be times when we don't want to list a page in the TOC (for example, if it's linked elsewhere and not meant to be a highly prioritized page).
I found these two potential packages:
I've also tagged this issue with topic: website, since it could be added as part of the website redesign project.
link checker should also check if internal links are having trainling slashes because breadcrumbs and selected sidebar is depend on it:
[docs] Breadcrumb shouldn't be dependent on trailing slashfix(www): Add slashes to links in features overviewdocs: redirect not select TOCHiya!
This issue has gone quiet. Spooky quiet. 馃懟
We get a lot of issues, so we currently close issues after 30 days of inactivity. It鈥檚 been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 馃挭馃挏
Docs links that start with docs/ rather than /docs/Hiya!
This issue has gone quiet. Spooky quiet. 馃懟
We get a lot of issues, so we currently close issues after 30 days of inactivity. It鈥檚 been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 馃挭馃挏
Not stale
FYI for root-relative links with remark-validate-links I have opened an issue for that here: https://github.com/remarkjs/remark-validate-links/issues/57
I ended up taking https://npmjs.com/package/mdx-link-checker and modifying it:
href, to, src propsname as well as id for anchor checkingindex.mdx if linking to a directoryI will open source this in the coming days / weeks.
@muescha ok if you want to try it out, here it is:
npm: https://www.npmjs.com/package/mdx-local-link-checker
Source: https://github.com/upleveled/mdx-local-link-checker
Hiya!
This issue has gone quiet. Spooky quiet. 馃懟
We get a lot of issues, so we currently close issues after 60 days of inactivity. It鈥檚 been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 馃挭馃挏
Not stale
Hiya!
This issue has gone quiet. Spooky quiet. 馃懟
We get a lot of issues, so we currently close issues after 60 days of inactivity. It鈥檚 been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 馃挭馃挏
Not stale
Hiya!
This issue has gone quiet. Spooky quiet. 馃懟
We get a lot of issues, so we currently close issues after 60 days of inactivity. It鈥檚 been at least 20 days since the last update here.
If we missed this issue or if you want to keep it open, please reply here.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 馃挭馃挏
Not stale