Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Amirault <mamirault@gitlab.com>2020-04-13 06:20:23 +0300
committerMarcel Amirault <mamirault@gitlab.com>2020-04-13 06:20:23 +0300
commit0cd0d34c1520ee31f5f846c7eb9d2c3d5c0b59f4 (patch)
tree536e2ca4f55dc5ebe5311085e3656fa0df792d7f
parentb9cfa94dbd918195fbddd060c486114a68a6fcc7 (diff)
parent72d7f46dd2d2539ae4818491bd8637b60aaa6209 (diff)
Merge branch 'reorder-output-anchor-links-check' into 'master'
Reorder the output of the anchor links check See merge request gitlab-org/gitlab-docs!781
-rw-r--r--lib/checks/anchors.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/checks/anchors.rb b/lib/checks/anchors.rb
index f200315f..21904e35 100644
--- a/lib/checks/anchors.rb
+++ b/lib/checks/anchors.rb
@@ -8,17 +8,17 @@ Nanoc::Check.define(:internal_anchors) do
if link.destination_page_not_found?
add_issue <<~ERROR
Destination page not found!
- - link `#{link.href}`
- source file `#{link.source_file}`
- destination `#{link.destination_file}`
+ - link `#{link.href}`
ERROR
elsif link.destination_anchor_not_found?
add_issue <<~ERROR
Broken anchor detected!
- - anchor `##{link.anchor_name}`
- - link `#{link.href}`
- source file `#{link.source_file}`
- destination `#{link.destination_file}`
+ - link `#{link.href}`
+ - anchor `##{link.anchor_name}`
ERROR
end
end