Skip to content

Commit

Permalink
Map 8.x to 8.16 for kibana link checking
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Sep 13, 2024
1 parent c9ef636 commit a8ee251
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion build_docs.pl
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,18 @@ sub check_kibana_links {
#
# TODO: remove as part of
# https://github.com/elastic/docs/issues/2264
$branch = $version eq "master" ? "main" : $version;
if ($version eq "master") {
$branch = "main";
}
else {
# Temporary work-around for 8.x branch masquerading as 8.16
if ($version eq "8.16") {
$branch = "8.x";
}
else {
$branch = $version;
}
}
say " Branch: $branch, Version: $version";
my $links_file;
my $source = eval {
Expand Down

0 comments on commit a8ee251

Please sign in to comment.