-
Notifications
You must be signed in to change notification settings - Fork 89
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
Homogenize link style #343
Conversation
cf9d991
to
824e60b
Compare
@p-shahi I converted all internal links to be of the form If that's not an acceptable solution, then I can do a find/replace to convert everything back to the simplest possible form. The links will be correct and the link checker will still verify external links, but there will be no CI test for internal links. For whatever reason, neither Hugo nor any link checkers I found check heading IDs ( |
Thanks for the hard work @dchiquito Also, I haven't looked into alternatives to lycheeverse myself, were there other alternatives you explored @dchiquito ? |
I looked at https://github.com/JustinBeckwith/linkinator and https://github.com/wjdp/htmltest, but lychee seemed to be the best fit and the best supported tool. |
Hi @dchiquito, thanks for this PR! From the looks of things, you're updating the link-checker in this repo. That might be unnecessary. This repo is built using Hugo, which has a built-in internal link checker. By using Regarding external links: @ElPaisano has been working on a comprehensive CI/CD process for checking external links (and some other things like spell checking, and formatting). This process will likely be merged into this repo at some point soon. I recommend that we:
|
@dchiquito @p-shahi I agree with Johnny's take here that we don't need to add this GH action. We can implement filecoin-project/filecoin-docs#2086 in this repo, which adds an external link check, markdown format chek, spell check and writing style check as a precommit step. Precommits can also be triggered as a GH action, so we can lint pre and post commit (if thats what the team wants) @dchiquito thanks for updating the links! That's super useful |
... although, looking into lycheeverse more, it might be worth using this in filecoin-project/filecoin-docs#2086, instead of https://github.com/tcort/markdown-link-check, which is what is currently used. It looks like a good tool. However, because this is a rust based tool, it won't play nice with NPM, like markdown-link-check. So that would require further refactoring |
@ElPaisano will you also be porting over the work in filecoin-project/filecoin-docs#2086 to this repo? sorry for not knowing this was happening earlier @dchiquito otherwise I would have definitely let you know. |
@p-shahi Most of the work in this PR is finding and adjusting relative links to use Hugo's |
That sgtm @dchiquito , we can add the filecoin-project/filecoin-docs#2086 changes later |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Fixes #342
I could not find the fail2ban demo video file, so that is the only remaining dead link.
The only change I'm not confident in is https://github.com/libp2p/docs/pull/343/files#diff-0cc46df6727c5d994526392f63afa1cb76f0eec3bd2d811c83c05044a0c4bee7L189 . I couldn't find any references to "content routing", so I changed the reference to discovery routing instead.