-
Notifications
You must be signed in to change notification settings - Fork 132
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
dead links galore #174
Comments
Thanks @anarcat would you like to open a PR to fix the links? |
i'm kind of busy right now, and this was more a meta-issue than those specific two... i would suggest to create a CI step to check the links on push, so that this doesn't occur again. and while I could fix those links with a rather small PR, this will happen again unless such a process is setup. and that part i'm not familiar enough with to fix. |
Those were found by accident, there are probably others on site. See containers#174.
@TomSweeneyRedHat asked in #175 which tools can be used to automate such checks... since this is a static website, what you want is a link checker. i happen to have inherited the maintenance of such a tool, called exactly that, linkchecker. it's kind of clunky and old, but it generally works. by default, it spiders the whole site but doesn't check external URLs, so it doesn't find the broken links I reported in #175 (because they are external).
it's possible to tell linkchecker to crawl external links, but then it becomes a web crawler and can potentially crawl the entire universe. the way I use it for my site is that I run this, for every $URL modified:
so, for example, in the case of the affected page:
the w3c also maintains their own crawler, called w3c-linkchecker, although I have less experience with it. i started using linkchecker because:
anyways, long story short: use a linkchecker, any linkchecker. :) |
Those were found by accident, there are probably others on site. See #174.
Another solution would to use a tool like textlint for markdown files. This can also be used for many other use cases like line length, trailing whitespace, wording, spell checks, etc. If you want to stick with ruby (because of jekyll), there is a tool called htmlproofer, which can be used right after the jekyll build to check the generated html for validity. |
I don't think we are against any of these tools. If we get contributors who want to add PRs to verify the content, then we would definitely consider it. |
@anarcat @daniel-wtd Did you guys ever work on this? |
Nope, I have started to work on another issue. If you want, I can have a look at some basic testing afterwards. |
Well any help you can give is appreciated. I don't have priority of one over the other. |
Phew, thats a toooon of links. Is there currently any automation process to run checks on pull-request like travis-ci or similar? |
@cevich @edsantiago are either of you aware of automatic link checks we could use per @daniel-wtd question above? |
the link check can be provided from me. My interest is more like: "what kind of automation options do we have for checks, based on pull requests" ;) There is a ton of stuff out there like travis-ci, cricle-ci, cirrus, etc. Depending on your preferences, we can use one of them or I can provide some simple tests to be run manually. |
My preference would be to use Cirrus-CI since it's already in such wide-spread use. Running tasks in containers doesn't require any special setup. In fact, before I go on PTO, I'll add this repo. to the github permissions list... |
...it's done. All you need is a |
@cevich thank you a ton :) I will start this weekend with some initial markdown / link checks. |
@cevich @daniel-wtd AWESOME! Both of you get a Gold Star today! 🥇 |
Just a short note for me/for anybody who may be interested. I am working on implementing some basic checks like described here: |
This code worked well for me:
Running on macOS. |
This could be fairly easily converted into a GitHub Actions workflow if that is an acceptable platform to use for the Containers org. |
Ouh, I totally forgot about this in the meantime. Thanks for the reminder. I will plan it for January. |
I am open to ideas on how to keep these blogs working. So whatever the community decides is fine with me. |
installation.md: simplify build-from-source for rpm distros
it seems dead links are not checked when changes are pushed to this repository, or at least there isn't a job doing that regularly, because I can easily find some. ;) I don't remember the ones I found the last time (and unfortunately did not report), but today I found two in the whatis page:
There might be other dead links on the site worth fixing.
The text was updated successfully, but these errors were encountered: