You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently found and fixed a number of broken links from The Swift Programming Language (TSPL) to the Swift standard library documentation. As far as I can tell, DocC doesn't currently have a way to detect dead links, so I built a script by hand using cmark and curl to check for this in the TSPL build script.
This seems like functionality that other projects besides TSPL could use, so it would be beneficial to incorporate it as a diagnostic for DocC. Because checking the validity of links takes time and requires a network connection, it's probably something that should be opt-in.
Motivation
No response
Importance
No response
Alternatives Considered
No response
The text was updated successfully, but these errors were encountered:
I would argue that making web requests to verify that web links aren't broken is not something that DocC itself should do.
The specific issue with links to the Swift standard library would probably be better solved by #208 or #419.
What we could possibly do is create another opt-in digest file with all web links in the content so that other scripts don't need to parse the markdown, in-source comments, and tutorial files to find all the links themselves.
d-ronnqvist
changed the title
Add the ability to emit a diagnostic for broken URL links
Emit new digest file with all web URLs encountered in the content
Dec 21, 2023
Feature Name
URL destination checking
Description
I recently found and fixed a number of broken links from The Swift Programming Language (TSPL) to the Swift standard library documentation. As far as I can tell, DocC doesn't currently have a way to detect dead links, so I built a script by hand using
cmark
andcurl
to check for this in the TSPL build script.This seems like functionality that other projects besides TSPL could use, so it would be beneficial to incorporate it as a diagnostic for DocC. Because checking the validity of links takes time and requires a network connection, it's probably something that should be opt-in.
Motivation
No response
Importance
No response
Alternatives Considered
No response
The text was updated successfully, but these errors were encountered: