-
Notifications
You must be signed in to change notification settings - Fork 109
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
Ensure there are no broken links, and automate the check #50
Comments
Things that may be broken:
I looked at the |
htmlproofer can be used to scan the site for broken links. Recommended command-line options: --allow_hash_href --empty_alt_ignore --assume_extension --disable_external This is still not perfect and is returning a lot of false positives, but it's a start. See also #50
I've been using htmlproofer which seems great except I can't get it to understand relative paths from the site root. For example
produces hundreds of failures of the form:
but running the same command on the root This led me down a horrible path:
I am highly tempted to just copy all the pages to the base directory and run the check against them there.. |
@hinerm If you add As for whether we should have relative links: no, we shouldn't. But |
The script
|
The script
_bin/broken-links.sh
prints out links that it detects as broken. But it needs updating to handle additional cases:/ij/*
– proxied mirror.imagej.net content – needs update to serve from/ij
and redirect old links from the root where feasible (e.g./macros
)/presentations
,/workshops
,/tutorials
,/list-of-update-sites
, others?List of known observed weirdness so far:
BigDataServer: INFO__
are linkish, but are surrounded in backticks. These should be fixed, and other instances of backtick-mangling should be checked for.\[link title\]
—I fixed many of them but would be good to double check there aren't any remaining.(Category_Segmentation)
(and similar) links—and_bin/broken-links.sh
does not find them.Once we have a robust dead link checker, we also need to hook it up to an action to check when links break.
See also #55, #63 (IJ1 page renames), #66
The text was updated successfully, but these errors were encountered: