Add latest changes from gitlab-org/gitlab@master

This commit is contained in:
GitLab Bot
2025-01-18 00:35:25 +00:00
parent ad3bb109f8
commit d5c2e5cc22
76 changed files with 328 additions and 178 deletions

View File

@ -74,11 +74,23 @@ class LintDocsRedirect
## The navigation.yaml equivalent is: ee/administration/appearance.html
##
def check_for_missing_nav_entry(file)
file_sub = file["old_path"].gsub('doc', project_slug).gsub('index.md', '').gsub('.md', '.html')
file_sub = file["old_path"].gsub('doc', project_slug).gsub(/_?index\.md/, '').gsub('.md',
'.html')
result = navigation_file.include?(file_sub)
return unless result
# If we're here, the path exists in navigation
# Now check if this is a rename between index.md and _index.md
if renamed_doc_file?(file)
old_basename = File.basename(file['old_path'])
new_basename = File.basename(file['new_path'])
# Allow renames between index.md and _index.md
return if %w[index.md _index.md].include?(old_basename) &&
%w[index.md _index.md].include?(new_basename)
end
warning(file)
abort