diff options
author | Sarah German <sgerman@gitlab.com> | 2022-10-12 20:12:41 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2022-10-12 20:12:41 +0300 |
commit | a409705ba7cd4077383ef8bb35cc1cd55b236deb (patch) | |
tree | 6124d9ae26a4b92d27d5217c295f4b7a3a50189e /lib | |
parent | 39551dd7e9886f728bbb1ab850573de38dd032e7 (diff) |
Refactor Archives page to use versions.json
Diffstat (limited to 'lib')
-rw-r--r-- | lib/checks/anchors.rb | 2 |
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? |