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:
authorEvan Read <eread@gitlab.com>2021-04-22 02:48:22 +0300
committerEvan Read <eread@gitlab.com>2021-04-22 02:48:22 +0300
commit99486cea451d17ef21f86210b7fc0efc5b5e6ff5 (patch)
tree95f8a62b9077171257408677d282e3bd5ea93777
parent1d999273a54ad9ec2b3a403ff02966f222b08c13 (diff)
Add exception for new anchorscreen-reader-fixa
-rw-r--r--lib/checks/anchors.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/checks/anchors.rb b/lib/checks/anchors.rb
index 91238bfc..3fbbb154 100644
--- a/lib/checks/anchors.rb
+++ b/lib/checks/anchors.rb
@@ -3,7 +3,7 @@ Nanoc::Check.define(:internal_anchors) do
Gitlab::Docs::Page.new(file).links.each do |link|
next unless link.internal?
next unless link.to_anchor?
- next if link.anchor_name == 'markdown-toc'
+ next if link.anchor_name == 'markdown-toc' || link.anchor_name == 'content-body'
if link.destination_page_not_found?
add_issue <<~ERROR