Add link checker for Gatsby Docs #31220
Replies: 26 comments
-
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’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
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’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
any opinion about this? as seen in the linked issues there some places where 404 exists without any notification when a PR is done... |
Beta Was this translation helpful? Give feedback.
-
closing #18908 as duplicate of this Issue.
Originally posted by @muescha in #18908 (comment)
Originally posted by @lannonbr in #18908 (comment) |
Beta Was this translation helpful? Give feedback.
-
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’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
it should also check the anchor links to headers |
Beta Was this translation helpful? Give feedback.
-
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’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
there should also an internal anchor link checker for headings. see: |
Beta Was this translation helpful? Give feedback.
-
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’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
helpful to find this errors:
|
Beta Was this translation helpful? Give feedback.
-
the checker should also check if all pages are in the TOC files for the sections. for example in related issue:
|
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
link checker should also check if internal links are having trainling slashes because breadcrumbs and selected sidebar is depend on it:
|
Beta Was this translation helpful? Give feedback.
-
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’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
#25469 |
Beta Was this translation helpful? Give feedback.
-
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’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
Not stale |
Beta Was this translation helpful? Give feedback.
-
FYI for root-relative links with |
Beta Was this translation helpful? Give feedback.
-
I ended up taking https://npmjs.com/package/mdx-link-checker and modifying it:
I will open source this in the coming days / weeks. Edit: Here it is: #31220 (comment) |
Beta Was this translation helpful? Give feedback.
-
@muescha ok if you want to try it out, here it is: npm: https://www.npmjs.com/package/mdx-local-link-checker |
Beta Was this translation helpful? Give feedback.
-
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’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
Not stale |
Beta Was this translation helpful? Give feedback.
-
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’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
Not stale |
Beta Was this translation helpful? Give feedback.
-
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’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
Not stale |
Beta Was this translation helpful? Give feedback.
-
Summary
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:
Ideas
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
)possible tools
[abc](docs/wronglink)
but they have to be[abc](docs/rightlink.md)
[abc](/docs/wronglink)
[abc](https://www.gatsbyjs.org/docs/wronglink)
Beta Was this translation helpful? Give feedback.
All reactions