-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
Expectation
Site A:
"Want to know XYZ? Look here! http://example.com/docs/look-here"
Documentation:
look-here moved to look-over-there.
look-here is redirected to look-over-there using mkdocs-redirects.
Reality
Site A:
"Want to know XYZ? Look here! http://example.com/docs/look-here"
Documentation:
look-here moved to look-over-there.
look-here is not redirected to look-over-there using mkdocs-redirects, because someone forgot.
Site A now has a dead link.
What aren't solutions?
- In a controlled environment, dead links can be detected on the linking side. But not when sites that you don't control link to your documentation. Also not when mkdocs sites link to each other: mkdocs doesn't support dead link detection natively (Add command to detect broken links mkdocs#2051)
- Relying on the reviewer to think "this link moved, do we have a redirect?". PR checklists are too invasive, as moving content is not common, but extremely frustrating for users/readers when it causes a dead link.
Practical
I have no ideas as to how this could be implemented in practice. After all, mkdocs has no state, so no way to know which links used to exist, and now don't, ergo which links need a redirect.
HalfWhitt
Metadata
Metadata
Assignees
Labels
No labels