Fixed some URLs and changed some to HTTPS #11
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I ran
grep -rnw . -e 'http:'in the repo directory and fixed outdated URLs and changed some fromhttp://tohttps://.Out of 6848 results, 6277 (which is ~92%) were to old Qt documentation at
qt.nokia.com. Changed them to the new domaindoc.qt.iowhich has archived the old docs.One URL (in 2 occurrences) was outdated and I couldn't find a new version of the page so I linked instead to an Internet Archive version.
This URL:
http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Utilities/qtbrowserpluginbecame this one:https://web.archive.org/web/20090902141130/qt.nokia.com/products/appdev/add-on-products/catalog/4/Utilities/qtbrowserplugin/.This URL on the other hand was also outdated:
http://devedge-temp.mozilla.org/library/manuals/2002/plugin/1.0/...so I checked it in Internet Archive, then googled and got a live version:
https://developer.mozilla.org/en-US/docs/Plugins/GuideClearly checking all 494 files would be cumbersome so this is the script I ran:
find ./ -type f -exec sed -i -E 's/http:\/\/qt.nokia.com\/doc\/4.6\/([-a-z0-9])+.html/https:\/\/doc.qt.io\/archives\/4.6\/\1.html/g' {} \;It reduces the number of
http:occurrences from 6848 to 795.You can additionally run:
...and get the number down to 80 (checked with
grep -r 'http:' | wc -l) in 28 files (checked withgrep -rl 'http:' | wc -l).