lib/nanoc/extra/checking/checks/internal_links.rb
# Starts the validator. The results will be printed to stdout.
#
# @return [void]
Starts the validator. The results will be printed to stdout.
Starts the validator . The results will be printed to stdout .
def run
      filenames = self.output_filenames.select { |f| File.extname(f) == '.html' }
      hrefs_with_filenames = ::Nanoc::Extra::LinkCollector.new(filenames, :internal).filenames_per_href
      hrefs_with_filenames.each_pair do |href, filenames|
        filenames.each do |filename|
          unless valid?(href, filename)
          self.add_issue(
            "reference to #{href}",
            :subject  => filename)
          end
        end
      end
    end
def run filenames = self . output_filenames . select { | f | File . extname ( f ) == '.html' } hrefs_with_filenames = :: Nanoc :: Extra :: LinkCollector . new ( filenames , :internal ) . filenames_per_href hrefs_with_filenames . each_pair do | href , filenames | filenames . each do | filename | unless valid? ( href , filename ) self . add_issue ( "reference to #{href}" , :subject => filename ) end end end end
Starts the validator.
Starts the validator .
# TODO de-duplicate this (duplicated in external links check)
None
void