From 3decf4d63093014807c9e76c2b592f18c907ccd0 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Wed, 4 Dec 2024 09:10:05 +0100 Subject: [PATCH] Fix broken references to public `doc_links` (#3133) * Fix broken references to public doc_links * Include new location for `get_doc_links.ts` * Continue to support 7.13 * Use old paths in tests (new ones are too long) * Include future location of doc-links packages * Update old test references --- build_docs.pl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build_docs.pl b/build_docs.pl index b833cc253019..d32210bb81be 100755 --- a/build_docs.pl +++ b/build_docs.pl @@ -413,6 +413,9 @@ sub check_kibana_links { say " Branch: $branch, Version: $version"; my $links_file; my $source = eval { + $links_file = "src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts"; + $repo->show_file( $link_check_name, $branch, $links_file ); + } || eval { $links_file = "packages/kbn-doc-links/src/get_doc_links.ts"; $repo->show_file( $link_check_name, $branch, $links_file ); } || eval { @@ -427,6 +430,12 @@ sub check_kibana_links { } || eval { $links_file = $legacy_path . ".ts"; $repo->show_file( $link_check_name, $branch, $links_file ); + } || eval { + $links_file = "src/core/packages/doc-links/core-doc-links-browser-internal/src/doc_links_service.ts"; + $repo->show_file( $link_check_name, $branch, $links_file ); + } || eval { + $links_file = "packages/core/doc-links/core-doc-links-browser-internal/src/doc_links_service.ts"; + $repo->show_file( $link_check_name, $branch, $links_file ); } || eval { $links_file = "src/core/public/doc_links/doc_links_service.ts"; $repo->show_file( $link_check_name, $branch, $links_file );