Skip to content

Commit ac7e958

Browse files
committed
Accommodate versions in doc link service
1 parent ae851a2 commit ac7e958

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

build_docs.pl

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,18 @@ sub check_kibana_links {
409409
#
410410
# TODO: remove as part of
411411
# https://github.com/elastic/docs/issues/2264
412-
$branch = $version eq "master" ? "main" : $version;
412+
if ($version eq "master") {
413+
$branch = "main"
414+
}
415+
else {
416+
if ($version eq "8.19") {
417+
$branch = "8.x"
418+
}
419+
else {
420+
$branch = $version
421+
}
422+
}
423+
# $branch = $version eq "master" ? "main" : $version;
413424
say " Branch: $branch, Version: $version";
414425
my $links_file;
415426
my $source = eval {

0 commit comments

Comments
 (0)