From a8ee25122e47bc8a5aa0a35b2c04d2df3e03dabb Mon Sep 17 00:00:00 2001 From: lcawl Date: Fri, 13 Sep 2024 12:21:25 -0700 Subject: [PATCH] Map 8.x to 8.16 for kibana link checking --- build_docs.pl | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/build_docs.pl b/build_docs.pl index 695537334b70..8d91d018aef3 100755 --- a/build_docs.pl +++ b/build_docs.pl @@ -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 {