-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[www]: Fix broken internal links #14693
Comments
I would like to help fix this. |
I'll be providing some guidance for @kkaramch - he's one of my mentees. |
Awesome thanks, @kkaramch and @watadarkstar! That would be super helpful! Would you like to assign yourselves to the issue? Any help with some or all of the broken links would be very appreciated 🙂 I think the most impactful change is removing the |
Cool! @kkaramch Can you follow what was suggested by @gillkyle here: #14693 (comment) You will want to:
|
@gillkyle RE: "Would you like to assign yourselves to the issue?" I don't think we can assign ourselves (access restrictions) but if you can do it for us that would be great! |
@watadarkstar oh yeah you're right my bad, I guess only users with push access to a repo can be assigned, didn't know that until now 🤷♂ this conversation is enough to let other's know that that little bit is already being worked on. |
Have you been able to get started on this @kkaramch or @watadarkstar? 🙂 |
Hi! If it's available, I'd like to help out! |
Thanks @kindavishal! Since @kkaramch sounded like he was interested in working on it too I don't think I can give a full green light, but this would be a valuable addition so if there's a piece you'd like to contribute or a handful of links you'd like to clean up these fixes could even come in multiple PRs from you two (and possibly others) and would be greatly appreciated! |
I'd be up for that! How should I proceed? |
@watadarkstar thanks for the contribution! @kindavishal feel free to open up a PR for any of the above broken links, I suppose if you get to it first than we can get things improved faster! The gist I linked shows a lot of the problems that were had, if you can follow that to track down what pages have the broken links that's where things would need to be corrected. |
Yup feel free to work on any tasks in this PR @kindavishal - @kkaramch is on vacation and I rarely have time to work on too much stuff outside of work. |
Hi guys, can I give a ✋ ? "https://www.gatsbyjs.org/docs/gatsby-in-the-enterprise/ (HTTP_404) - (this appears to be broken in the sidebar of all docs pages because of a createRedirect in /src/www/gatsby-node.js that is unnecessary, removing it seems like it would be enough to fix all of these issues)" - This one I cannot reproduce, maybe its already fixed? "https://www.gatsbyjs.org/contributing/events/meenhacks.github.io (HTTP_404) - (this looks it's being interpreted as a relative url, not an absolute url)" - @gillkyle you are correct, but looking at the code this is better to be fixed in the CMS, right? The correct link is https://meenhacks.github.io/ I can also make a fn to guarantee that all links are absolute in this list but I don't know if thats intended. Cheers |
Just to get my 🐾 wet 😄 opened a PR to fix this one: https://www.gatsbyjs.org/plugins/gatsby-transformer-remark (HTTP_404) Hope you don't mind 😊 Thanks |
Thanks @gillkyle and @watadarkstar. I am setting up my dev environment now and will try to find my way through from your previous work. I'll comment here if I get lost or stuck somewhere! |
Thanks @luisFilipePT!! Of course we don't mind, every contribution is totally welcome! 😄 Sounds great @kindavishal! If you have any problems feel free to reach out! |
Can I work on this to fix the links? |
Feel free to open a PR to open to fix whatever you can @Aswinpookkatt! |
Hi @gillkyle, I was looking through the list of broken and missing image links and all the ones on blog seem to be actually working? Wondering why they're showing up as broken. Regardless, I'd like to help with the other broken links as well! Is there a system for how they're being divvied up? |
…-cms/ Fix broken links in page - https://www.gatsbyjs.org/docs/headless-cms/ Task from issue: [www]: Fix broken internal links #14693
* docs(www): Fix broken links in https://www.gatsbyjs.org/docs/headless-cms/ Fix broken links in page - https://www.gatsbyjs.org/docs/headless-cms/ Task from issue: [www]: Fix broken internal links #14693 * docs(www): Fix code style issue Fix code style issue
@tom-raley the broken images on blog posts were fixed by upgrading If there are other existing links you can find it's been pretty first come first serve since these changes can be made pretty fast so if no one else has opened up a PR for something feel free to. It might be a good idea to run the link checker again and get a new dump of broken links to check. |
@gillkyle Sounds good, thanks for clarifying! Got a PR coming for the enterprise link issue. |
Landed my first PR, took some homework, but was able to figure out! Thanks @watadarkstar and @gillkyle |
Hey @gillkyle @watadarkstar I am a bit confused about this link
Works fine till https://www.gatsbyjs.org/docs/mdx/programmatically-creating-pages |
It looks like this is just about done. Thanks for all the PRs everyone! This will help page scores because we won't get dinged for 404 errors and will help people navigating the docs not get lost or annoyed. @kindavishal I'm guessing that error is a result of that page being moved from docs at another location. I'll bet we have that link somewhere in our mdx docs that doesn't have a corresponding page for |
Just fixed this, and correct that it was a fix for the CMS, we actually pull that information in from Airtable and I just updated the link that will fix this once the .org site is rebuilt. |
…byjs#15133) * docs(www): Fix broken links in https://www.gatsbyjs.org/docs/headless-cms/ Fix broken links in page - https://www.gatsbyjs.org/docs/headless-cms/ Task from issue: [www]: Fix broken internal links gatsbyjs#14693 * docs(www): Fix code style issue Fix code style issue
I did a sweep of the site to try and amend issues with broken links, running a link checker gave me a report of about 300 broken links (some are redundant and show up on multiple pages, see the gist for full output).
The links to fix are the following:
Broken URLs
createRedirect
in/src/www/gatsby-node.js
that is unnecessary, removing it seems like it would be enough to fix all of these issues)You can search for the links above in the gist that has the full output and find the actual pages they are found on, example:
Searching for
https://www.gatsbyjs.org/packages/gatsby/src/utils/create-content-digest.js
will find this block in the report:Showing that the link came from
/docs/node-interface/
and there are two broken links on the page, two that are okay, and 310 others that were excluded.Missing/Broken Images
There are a whole bunch of missing images and things as well, for sake of keeping this issue shorter I'm including them in another gist: https://gist.github.com/gillkyle/72599d04202908c4a7e6cc9b1d359b38
Steps to Complete
We need to go through each of these links on a somewhat case by case basis and find the pages it's linked from that need updates in code. For images, some are missing, other might just be pointing at the wrong place. For pages, it's likely that the links have changed or pages have moved and have broken links.
If we can resolve the links that are broken we'll be in good shape helping newcomers navigate the docs better 👍
The text was updated successfully, but these errors were encountered: