Skip to content

Commit

Permalink
Add ECS_VERSION to doc link checker
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Apr 30, 2024
1 parent f66f32a commit caf8beb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build_docs.pl
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ sub check_kibana_links {
while ( $contents =~ m!`(\$\{(?:baseUrl|ELASTIC.+|KIBANA_DOCS|PLUGIN_DOCS|FLEET_DOCS|APM_DOCS|STACK_DOCS|SECURITY_SOLUTION_DOCS|STACK_GETTING_STARTED|APP_SEARCH_DOCS|ENTERPRISE_SEARCH_DOCS|WORKPLACE_SEARCH_DOCS)\}[^`]+)`!g ) {
my $path = $1;
$path =~ s/\$\{(?:DOC_LINK_VERSION|urlVersion)\}/$version/;
$path =~ s/\$\{(?:ECS_VERSION)\}/current/;
# In older versions, the variable `${ELASTIC_DOCS}` referred to
# the Elasticsearch Guide. In newer branches, the
# variable is called `${ELASTICSEARCH_DOCS}`
Expand Down

0 comments on commit caf8beb

Please sign in to comment.