Skip to content

Commit 03f3ccf

Browse files
committed
Revert to kebab-case product definition and allow compatibility with frontmatter definitions
1 parent b6e1e51 commit 03f3ccf

File tree

4 files changed

+85
-85
lines changed

4 files changed

+85
-85
lines changed

config/legacy-url-mappings.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,40 @@ stack: &stack [ '8.19', '8.18', '8.17', '8.16', '8.15', '8.14', '8.13', '8.12',
88

99
mappings:
1010
en/apm/agent/android/:
11-
product: apm_agent_android
11+
product: apm-agent-android
1212
legacy_versions: [ '1.2.0' , '0.x' ]
1313
en/apm/agent/dotnet/:
14-
product: apm_agent_dotnet
14+
product: apm-agent-dotnet
1515
legacy_versions: [ '1.33.0' ]
1616
en/apm/agent/go/:
17-
product: apm_agent_go
17+
product: apm-agent-go
1818
legacy_versions: [ '2.7.1', '1.x', '0.5' ]
1919
en/apm/agent/java/:
20-
product: apm_agent_java
20+
product: apm-agent-java
2121
legacy_versions: ['1.54.0', '0.7', '0.6']
2222
en/apm/agent/nodejs/:
23-
product: apm_agent_node
23+
product: apm-agent-node
2424
legacy_versions: [ '4.x', '3.x', '2.x', '1.x' ]
2525
en/apm/agent/php/:
26-
product: apm_agent_php
26+
product: apm-agent-php
2727
legacy_versions: [ '1.15.1', '1.x' ]
2828
en/apm/agent/python/:
29-
product: apm_agent_python
29+
product: apm-agent-python
3030
legacy_versions: [ '6.24.0', '5.x', '4.x', '3.x', '2.x', '1.x' ]
3131
en/apm/agent/ruby/:
32-
product: apm_agent_ruby
32+
product: apm-agent-ruby
3333
legacy_versions: [ '4.8.0', '3.x', '2.x', '1.x' ]
3434
en/apm/agent/rum-js/:
35-
product: apm_agent_rum_js
35+
product: apm-agent-rum-js
3636
legacy_versions: [ '5.17.0', '4.x', '3.x', '2.x', '1.x', '0.x' ]
3737
en/apm/agent/swift/:
38-
product: apm_agent_ios
38+
product: apm-agent-ios
3939
legacy_versions: [ '1.2.1', '0.x' ]
4040
en/apm/attacher/:
41-
product: apm_k8s_attacher
41+
product: apm-k8s-attacher
4242
legacy_versions: [ '1.1.3' ]
4343
en/apm/lambda/:
44-
product: apm_aws_lambda
44+
product: apm-aws-lambda
4545
legacy_versions: [ '1.5.8' ]
4646
en/beats/auditbeat/:
4747
product: auditbeat
@@ -80,61 +80,61 @@ mappings:
8080
product: winlogbeat
8181
legacy_versions: *stack
8282
en/cloud-heroku/:
83-
product: cloud_hosted
83+
product: cloud-hosted
8484
legacy_versions: []
8585
en/cloud-on-k8s/:
86-
product: cloud_kubernetes
86+
product: cloud-kubernetes
8787
legacy_versions: [ '3.0+', '2.16', '2.15', '2.14', '2.13', '2.12', '2.11', '2.10', '2.9', '2.8', '2.7', '2.6', '2.5', '2.4', '2.3', '2.2', '2.1', '2.0', '1.9', '1.8', '1.7', '1.6', '1.5', '1.4', '1.3', '1.2', '1.1', '1.0' ]
8888
en/cloud/:
89-
product: cloud_hosted
89+
product: cloud-hosted
9090
legacy_versions: []
9191
en/cloud-enterprise/:
92-
product: cloud_enterprise
92+
product: cloud-enterprise
9393
legacy_versions: [ '4.0', '3.8', '3.7', '3.6', '3.5', '3.4', '3.3', '3.2', '3.1', '3.0', '2.13', '2.12', '2.11', '2.10', '2.9', '2.8', '2.7', '2.6', '2.5', '2.4', '2.3', '2.2', '2.1', '2.0', '1.1', '1.0' ]
9494
en/ecctl/:
95-
product: cloud_control_ecctl
95+
product: cloud-control-ecctl
9696
legacy_versions: [ '1.14+', '1.13', '1.12', '1.11', '1.10', '1.9', '1.8', '1.7', '1.6', '1.5', '1.4', '1.3', '1.2', '1.1', '1.0' ]
9797
en/ecs-logging/:
98-
product: ecs_logging
98+
product: ecs-logging
9999
legacy_versions: []
100100
en/ecs-logging/dotnet/:
101-
product: ecs_dotnet
101+
product: ecs-dotnet
102102
legacy_versions: []
103103
en/ecs-logging/go-logrus/:
104-
product: ecs_logging_go_logrus
104+
product: ecs-logging-go-logrus
105105
legacy_versions: []
106106
en/ecs-logging/go-zap/:
107-
product: ecs_logging_go_zap
107+
product: ecs-logging-go-zap
108108
legacy_versions: []
109109
en/ecs-logging/go-zerolog/:
110-
product: ecs_logging_go_zerolog
110+
product: ecs-logging-go-zerolog
111111
legacy_versions: []
112112
en/ecs-logging/java/:
113-
product: ecs_logging_java
113+
product: ecs-logging-java
114114
legacy_versions: ['0.x']
115115
en/ecs-logging/nodejs/:
116-
product: ecs_logging_nodejs
116+
product: ecs-logging-nodejs
117117
legacy_versions: []
118118
en/ecs-logging/overview/:
119-
product: ecs_logging
119+
product: ecs-logging
120120
legacy_versions: []
121121
en/ecs-logging/php/:
122-
product: ecs_logging_php
122+
product: ecs-logging-php
123123
legacy_versions: []
124124
en/ecs-logging/python/:
125-
product: ecs_logging_python
125+
product: ecs-logging-python
126126
legacy_versions: [ '2.2.0' ]
127127
en/ecs-logging/ruby/:
128-
product: ecs_logging_ruby
128+
product: ecs-logging-ruby
129129
legacy_versions: []
130130
en/ecs/:
131131
product: ecs
132132
legacy_versions: [ '8.18', '8.17', '8.16', '8.15', '8.14', '8.13', '8.12', '8.11', '8.10', '8.9', '8.8', '8.7', '8.6', '8.5', '8.4', '8.3', '8.2', '8.1', '8.0', '1.12', '1.11', '1.10', '1.9', '1.8', '1.7', '1.6', '1.5', '1.4', '1.3', '1.2', '1.1', '1.0' ]
133133
en/elastic-stack-glossary/:
134-
product: elastic_stack
134+
product: elastic-stack
135135
legacy_versions: []
136136
en/elastic-stack/:
137-
product: elastic_stack
137+
product: elastic-stack
138138
legacy_versions: *stack
139139
en/elasticsearch/client/curator/:
140140
product: curator
@@ -179,10 +179,10 @@ mappings:
179179
product: elasticsearch
180180
legacy_versions: *stack
181181
en/esf/:
182-
product: elastic_serverless_forwarder
182+
product: elastic-serverless-forwarder
183183
legacy_versions: ['1.20.1']
184184
en/fleet/:
185-
product: elastic_agent
185+
product: elastic-agent
186186
legacy_versions: *stack
187187
en/ingest-overview/:
188188
product: elasticsearch
@@ -215,7 +215,7 @@ mappings:
215215
product: elasticsearch
216216
legacy_versions: []
217217
en/search-ui/:
218-
product: search_ui
218+
product: search-ui
219219
legacy_versions: ['1.24.1', '1.24.0']
220220
en/security/:
221221
product: security

config/products.yml

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,46 @@ products:
22
apm:
33
display: 'APM'
44
versioning: 'stack'
5-
apm_agent:
5+
apm-agent:
66
display: 'APM Agent'
77
versioning: 'stack'
8-
apm_agent_android:
8+
apm-agent-android:
99
display: 'APM Agent for Android'
1010
versioning: 'apm_agent_android'
11-
apm_agent_dotnet:
11+
apm-agent-dotnet:
1212
display: 'APM Agent for .NET'
1313
versioning: 'apm_agent_dotnet'
14-
apm_agent_go:
14+
apm-agent-go:
1515
display: 'APM Agent for Go'
1616
versioning: 'apm_agent_go'
17-
apm_agent_ios:
17+
apm-agent-ios:
1818
display: 'APM Agent for iOS'
1919
versioning: 'apm_agent_ios'
20-
apm_agent_java:
20+
apm-agent-java:
2121
display: 'APM Agent for Java'
2222
versioning: 'apm_agent_java'
23-
apm_agent_node:
23+
apm-agent-node:
2424
display: 'APM Agent for Node'
2525
versioning: 'apm_agent_node'
26-
apm_agent_php:
26+
apm-agent-php:
2727
display: 'APM Agent for PHP'
2828
versioning: 'apm_agent_php'
29-
apm_agent_python:
29+
apm-agent-python:
3030
display: 'APM Agent for Python'
3131
versioning: 'apm_agent_python'
32-
apm_agent_ruby:
32+
apm-agent-ruby:
3333
display: 'APM Agent for Ruby'
3434
versioning: 'apm_agent_ruby'
35-
apm_agent_rum_js:
35+
apm-agent-rum-js:
3636
display: 'APM RUM JavaScript agent'
3737
versioning: 'apm_agent_rum'
38-
apm_k8s_attacher:
38+
apm-k8s-attacher:
3939
display: 'APM Attacher for Kubernetes'
4040
versioning: 'apm_attacher'
41-
apm_aws_lambda:
41+
apm-aws-lambda:
4242
display: 'APM AWS Lambda extension'
4343
versioning: 'apm_lambda'
44-
apm_server:
44+
apm-server:
4545
display: 'APM Server'
4646
versioning: 'stack'
4747
auditbeat:
@@ -50,22 +50,22 @@ products:
5050
beats:
5151
display: 'Beats'
5252
versioning: 'stack'
53-
cloud_control_ecctl:
53+
cloud-control-ecctl:
5454
display: 'Elastic Cloud Control ECCTL'
5555
versioning: 'ecctl'
56-
cloud_enterprise:
56+
cloud-enterprise:
5757
display: 'Elastic Cloud Enterprise'
5858
versioning: 'ece'
59-
cloud_hosted:
59+
cloud-hosted:
6060
display: 'Elastic Cloud Hosted'
6161
versioning: 'ech'
62-
cloud_kubernetes:
62+
cloud-kubernetes:
6363
display: 'Elastic Cloud Kubernetes'
6464
versioning: 'eck'
65-
cloud_serverless:
65+
cloud-serverless:
6666
display: 'Elastic Cloud Serverless'
6767
versioning: 'serverless'
68-
cloud_terraform:
68+
cloud-terraform:
6969
display: 'Elastic Cloud Terraform'
7070
versioning: 'stack'
7171
curator:
@@ -74,85 +74,85 @@ products:
7474
ecs:
7575
display: 'Elastic Common Schema (ECS)'
7676
versioning: 'stack'
77-
ecs_logging:
77+
ecs-logging:
7878
display: 'ECS Logging'
7979
versioning: 'stack'
80-
ecs_dotnet:
80+
ecs-dotnet:
8181
display: 'Elastic Common Schema support for .NET'
8282
versioning: 'ecs_logging_dotnet'
83-
ecs_logging_go_logrus:
83+
ecs-logging-go-logrus:
8484
display: 'Elastic Common Schema (ECS) support for Logrus'
8585
versioning: 'ecs_logging_go_logrus'
86-
ecs_logging_go_zap:
86+
ecs-logging-go-zap:
8787
display: 'Elastic Common Schema (ECS) support for uber_go/zap logger'
8888
versioning: 'ecs_logging_go_zap'
89-
ecs_logging_go_zerolog:
89+
ecs-logging-go-zerolog:
9090
display: 'Elastic Common Schema (ECS) support for zerolog'
9191
versioning: 'ecs_logging_go_zerolog'
92-
ecs_logging_java:
92+
ecs-logging-java:
9393
display: 'ECS_based logging for Java applications'
9494
versioning: 'ecs_logging_java'
95-
ecs_logging_nodejs:
95+
ecs-logging-nodejs:
9696
display: 'Elastic Common Schema (ECS) support for Node js'
9797
versioning: 'ecs_logging_nodejs'
98-
ecs_logging_php:
98+
ecs-logging-php:
9999
display: 'ECS Logging for PHP'
100100
versioning: 'ecs_logging_php'
101-
ecs_logging_python:
101+
ecs-logging-python:
102102
display: 'Elastic Common Schema (ECS) support for Python'
103103
versioning: 'ecs_logging_python'
104-
ecs_logging_ruby:
104+
ecs-logging-ruby:
105105
display: 'Elastic Common Schema (ECS) support for Ruby'
106106
versioning: 'ecs_logging_ruby'
107-
edot_cf:
107+
edot-cf:
108108
display: 'EDOT Cloud Forwarder'
109109
versioning: 'stack'
110-
edot_sdk:
110+
edot-sdk:
111111
display: 'Elastic Distribution of OpenTelemetry SDK'
112112
versioning: 'stack'
113-
edot_collector:
113+
edot-collector:
114114
display: 'Elastic Distribution of OpenTelemetry Collector'
115115
versioning: 'stack'
116-
edot_ios:
116+
edot-ios:
117117
display: 'Elastic Distribution of OpenTelemetry iOS'
118118
versioning: 'edot_ios'
119-
edot_android:
119+
edot-android:
120120
display: 'Elastic Distribution of OpenTelemetry Android'
121121
versioning: 'edot_android'
122-
edot_dotnet:
122+
edot-dotnet:
123123
display: 'Elastic Distribution of OpenTelemetry .NET'
124124
versioning: 'edot_dotnet'
125-
edot_java:
125+
edot-java:
126126
display: 'Elastic Distribution of OpenTelemetry Java'
127127
versioning: 'edot_java'
128-
edot_node:
128+
edot-node:
129129
display: 'Elastic Distribution of OpenTelemetry Node'
130130
versioning: 'edot_node'
131-
edot_php:
131+
edot-php:
132132
display: 'Elastic Distribution of OpenTelemetry PHP'
133133
versioning: 'edot_php'
134-
edot_python:
134+
edot-python:
135135
display: 'Elastic Distribution of OpenTelemetry Python'
136136
versioning: 'edot_python'
137-
edot_cf_aws:
137+
edot-cf-aws:
138138
display: 'EDOT Cloud Forwarder for AWS'
139139
versioning: 'edot_cf_aws'
140140
eland:
141141
display: 'Eland'
142142
versioning: 'stack'
143-
elastic_agent:
143+
elastic-agent:
144144
display: 'Elastic Agent'
145145
versioning: 'stack'
146-
elastic_serverless_forwarder:
146+
elastic-serverless-forwarder:
147147
display: 'Elastic Serverless Forwarder'
148148
versioning: 'esf'
149-
elastic_stack:
149+
elastic-stack:
150150
display: 'Elastic Stack'
151151
versioning: 'stack'
152152
elasticsearch:
153153
display: 'Elasticsearch'
154154
versioning: 'stack'
155-
elasticsearch_client:
155+
elasticsearch-client:
156156
display: 'Elasticsearch Client'
157157
versioning: 'stack'
158158
ess:
@@ -176,7 +176,7 @@ products:
176176
logstash:
177177
display: 'Logstash'
178178
versioning: 'stack'
179-
machine_learning:
179+
machine-learning:
180180
display: 'Machine Learning'
181181
versioning: 'stack'
182182
metricbeat:
@@ -191,7 +191,7 @@ products:
191191
painless:
192192
display: 'Elasticsearch Painless scripting language'
193193
versioning: 'stack'
194-
search_ui:
194+
search-ui:
195195
display: 'Search UI'
196196
versioning: 'stack'
197197
security:
@@ -203,13 +203,13 @@ products:
203203
serverless:
204204
display: 'Elastic Serverless'
205205
versioning: 'all'
206-
serverless_elasticsearch:
206+
serverless-elasticsearch:
207207
display: 'Elasticsearch'
208208
versioning: 'all'
209-
serverless_observability:
209+
serverless-observability:
210210
display: 'Elastic Observability'
211211
versioning: 'all'
212-
serverless_security:
212+
serverless-security:
213213
display: 'Elastic Security'
214214
versioning: 'all'
215215
winlogbeat:

src/Elastic.Documentation.Configuration/Builder/ConfigurationFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public ConfigurationFile(IDocumentationSetContext context, VersionsConfiguration
149149
break;
150150
}
151151

152-
if (!productsConfig.Products.TryGetValue(productId.Value, out var productToAdd))
152+
if (!productsConfig.Products.TryGetValue(productId.Value.Replace('_', '-'), out var productToAdd))
153153
reader.EmitError($"Product \"{productId.Value}\" not found in the product list. {new Suggestion(productsConfig.Products.Select(p => p.Value.Id).ToHashSet(), productId.Value).GetSuggestionQuestion()}", node);
154154
else
155155
_ = Products.Add(productToAdd);

0 commit comments

Comments
 (0)