diff options
Diffstat (limited to 'lib/checks/anchors.rb')
-rw-r--r-- | lib/checks/anchors.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/checks/anchors.rb b/lib/checks/anchors.rb index 91238bfc..3c775f4f 100644 --- a/lib/checks/anchors.rb +++ b/lib/checks/anchors.rb @@ -5,14 +5,7 @@ Nanoc::Check.define(:internal_anchors) do next unless link.to_anchor? next if link.anchor_name == 'markdown-toc' - if link.destination_page_not_found? - add_issue <<~ERROR - Destination page not found! - - source file `#{link.source_file}` - - destination `#{link.destination_file}` - - link `#{link.href}` - ERROR - elsif link.destination_anchor_not_found? + if link.destination_anchor_not_found? add_issue <<~ERROR Broken anchor detected! - source file `#{link.source_file}` |