Broken links in official docs in the website #1489
Comments
|
How are the docs ported from wiki to the website. I mean I am down to help if needed. |
|
I investigated a little. It seems that any link from a main wiki page to other wiki page is broken. The reason is because we are using relative urls. So, lets say that in Motors page we are linking to Motor. We will have a relative url with href attribute 'motor'. Here's the deal: On Github Wiki, relative urls replace the word after wiki so motors becomes motor on clicking. While, in the website, the relative url gets appended to motors. So, the url becomes /motors/motor. I think instead of changing the wiki, we should make a rule or something in deployment to fix this. Maybe a script could help with relative url as ../motor say instead of motor directly. |
|
In that case, the fix would probably need to be made in this repo: |
|
Here's the deal, we have absolute links in some places while relative in others. The ones that work are those that have absolute links in wiki markdown pages. Also, there is an issue of capitalization. Like in wiki, if the link is to say Relay, then it works fine even though the actual link is relay. So, the links in wiki must also be relay and not Relay. |
|
I am gonna go ahead and try changing the wiki. |
|
Okay, I made relevant changes in as many wiki pages as I could. I guess we could redeploy the website? How do we do that? I am having trouble understanding the procedure in the Readme. |
|
Let me know if it looks in good shape and then we can close this issue. |
|
Alas no! There are still broken links for example the link from esc to escs page is broken. I guess I could take a look again. |
|
This has been fixed
Once someone has a chance to verify that the links in all of these are consistent and correct, we will close this issue. |
|
I ran link validation on the live site a couple of days ago and there were 50+ in addition to these. Mostly outbound. Should I put those in a separate issue? Lots of legwork to clean those up (links to docs, specific products and stuff like that).
…Sent from my iPhone
On Aug 19, 2018, at 9:58 AM, Rick Waldron ***@***.***> wrote:
This has been fixed
http://johnny-five.io/api/board/
http://johnny-five.io/api/boards/
http://johnny-five.io/api/esc/
http://johnny-five.io/api/escs/
http://johnny-five.io/api/led/
http://johnny-five.io/api/leds/
http://johnny-five.io/api/motor/
http://johnny-five.io/api/motors/
http://johnny-five.io/api/relay/
http://johnny-five.io/api/relays/
http://johnny-five.io/api/servo/
http://johnny-five.io/api/servos/
Once someone has a chance to verify that the links in all of these are consistent and correct, we will close this issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
@dtex this issue, why not? |


Specifically, these are the pages from wiki which have both plural and singular versions and link from one to other (usually under the heading See Also). I am listing the links of ones I found to be broken:
I think the issue underlying all these is that in the plural linked page, link to the singular version is appended to the url instead of replacing the plural version.
The text was updated successfully, but these errors were encountered: