Class Nanoc::Extra::Validators::Links
In: lib/nanoc/extra/validators/links.rb
Parent: Object

A validator that verifies that all links (`<a href="…">…</a>`) point to a location that exists.

Methods

new   run  

Classes and Modules

Class Nanoc::Extra::Validators::Links::ThreadsafeHashEnumerator

Public Class methods

@param [String] dir The directory that will be searched for HTML files

  to validate

@param [Array<String>] index_filenames An array of index filenames that

  will be appended to URLs by web servers if a directory is requested
  instead of a file

@option params [Boolean] :internal (false) True if internal links should

  be checked; false if they should not

@option params [Boolean] :external (false) True if external links should

  be checked; false if they should not

Public Instance methods

Starts the validator. The results will be printed to stdout.

@return [void]

[Validate]