Package
#n Wyam.Html
Usage
ValidateLinks()
Fluent Methods
Chain these methods together after the constructor to modify behavior.
-
AsError(bool asError = true)
When the validation process is complete, all the validation failures will be output as warnings. This method can be used to report all of the failures as errors instead (possibly breaking the generation).
asError
true
to report failures as an error.
-
ValidateAbsoluteLinks(bool validateAbsoluteLinks = true)
Validates absolute (often external) links. This may add a significant delay to your generation process so it's recommended absolute links are only checked periodically. The default behavior is not to check absolute links. Also note that false positive failures are common when validating external links so any links that fail the check should be subsequently checked manually.
validateAbsoluteLinks
true
to validate absolute links.
-
ValidateRelativeLinks(bool validateRelativeLinks = true)
Validates relative links, which is activated by default.
validateRelativeLinks
true
to validate relative links.