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
path: root/lib
diff options
context:
space:
mode:
authorSarah German <sgerman@gitlab.com>2022-10-12 20:12:41 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2022-10-12 20:12:41 +0300
commita409705ba7cd4077383ef8bb35cc1cd55b236deb (patch)
tree6124d9ae26a4b92d27d5217c295f4b7a3a50189e /lib
parent39551dd7e9886f728bbb1ab850573de38dd032e7 (diff)
Refactor Archives page to use versions.json
Diffstat (limited to 'lib')
-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 79ecbd08..e93fd9a2 100644
--- a/lib/checks/anchors.rb
+++ b/lib/checks/anchors.rb
@@ -5,7 +5,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 %w(markdown-toc, offline-archives).include? link.anchor_name
next unless link.destination_anchor_not_found?