-
Notifications
You must be signed in to change notification settings - Fork 394
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
docs/blog: use relative /doc
links to avoid link checker errors
#2222
Comments
UPDATE: I see there's 3 such links in the whole docs. Again, I doubt it's related to the link checker issues (so no need to follow up there). I'm reopening this but a quick PR in these cases would probably be faster. |
Most (maybe all) of them are in the blog. e.g. this Searching I can fix all of them at once, keeping the legit ones in Github Readme and Contributing docs intact and changing others but I would like to know how you and @shcheklein view to this. @jorgeorpinel |
we do need to update links everywhere, we run a link check using cron and it detects broken links in docs and in blog. Unless I didn't get your point @jorgeorpinel :) |
Can someone share the failing check? I don't understand this issue. Old blog links never change so how is that a problem in the check? Even if the links are relative if that page goes away the link check will fail anyway right? (Should be changed when the source pages change unless a redirect is introduced) Maybe I'm not getting this... |
I'm searching the whole repository, including the blog. An example of failure is #2214 that changes Replacing makes link checks in test deployments to be more robust I think. |
I see! Thanks for the example. Maybe an easier approach be to update those 3 blog links in #2214, and so on (do them as they come). But I guess changing all of them in a PR is also OK, may just be tedious to do and review. But yes, I have no problem with that 👍 So I looked again in all of content/ and my results now are:
|
I'll fix in #2214 and will have separate PR's for the blog and docs about this. I think it's better to keep Some of the I think writing a small utility to check links with regexes to Thanks. |
yep, it's a separate ticket to improve our link check to detect those. But let's not focus on this for now please :)
to make them all relative? I think it can be another feature of the link checker indeed. I would also not focus on this too much. Link checker itself has way more important things to be fixed in the #1838 |
I have fixed the broken links in #2214. Shall I continue updating the links? BTW I read the Github action logs and it looks the whole repository link check takes more than 6 hours. It's ~21.000 seconds and it shouldn't take that long to check all the links I think. Can there be another problem with the link-checker? @shcheklein |
Updating some of the instanced mentioned in #2222 (comment) would be nice @iesahin, but it doesn't seem like there's a big issue to worry about, so up to you. |
dvc.org/doc
to links /doc
to avoid some link check errors dvc.org/doc
to /doc
to avoid link check errors
dvc.org/doc
to /doc
to avoid link check errors /doc
links to avoid link check errors
/doc
links to avoid link check errors /doc
links to avoid link check errors
/doc
links to avoid link check errors /doc
links to avoid link checker errors
UPDATE: Jump to #2222 (comment)
There are links in the repository that could be written as local links.
These may fail in link-check when a URL updated in the site. e.g. When we update
https://dvc.org/doc/a
tohttps://dvc.org/doc/b
,https://dvc.og/doc/b
is not found by the link checker, because it's not deployed yet. If these links were in the form of/a
and/b
, the link checker would find them in the test deployment.The text was updated successfully, but these errors were encountered: