Skip to content

Commit 67e4620

Browse files
authored
Add CF and fix labels (#1496)
1 parent da10b01 commit 67e4620

File tree

4 files changed

+26
-10
lines changed

4 files changed

+26
-10
lines changed

src/Elastic.Documentation.Configuration/Versions/Version.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ public enum VersioningSystemId
8282
[Display(Name = "edot_php")]
8383
EdotPhp,
8484
[Display(Name = "edot_python")]
85-
EdotPython
85+
EdotPython,
86+
[Display(Name = "edot_cf_aws")]
87+
EdotCfAws
8688
}
8789

8890
[YamlSerializable]

src/Elastic.Documentation.Configuration/versions.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,7 @@ versioning_systems:
8585
edot_python:
8686
base: 1.0
8787
current: 1.3.0
88+
edot_cf_aws:
89+
base: 0.1
90+
current: 0.1.6
91+

src/Elastic.Markdown/Myst/Components/ApplicableToComponent.cshtml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,43 +183,49 @@
183183

184184
if (pa.EdotIos is not null)
185185
{
186-
@RenderProduct("EDOT iOS", "Elastic Distributions of OpenTelemetry for iOS", VersioningSystemId.EdotIos, pa.EdotIos)
186+
@RenderProduct("EDOT iOS", "Elastic Distribution of OpenTelemetry iOS", VersioningSystemId.EdotIos, pa.EdotIos)
187187
;
188188
}
189189

190190
if (pa.EdotAndroid is not null)
191191
{
192-
@RenderProduct("EDOT Android", "Elastic Distributions of OpenTelemetry for Android", VersioningSystemId.EdotAndroid, pa.EdotAndroid)
192+
@RenderProduct("EDOT Android", "Elastic Distribution of OpenTelemetry Android", VersioningSystemId.EdotAndroid, pa.EdotAndroid)
193193
;
194194
}
195195

196196
if (pa.EdotDotnet is not null)
197197
{
198-
@RenderProduct("EDOT .NET", " Elastic Distributions of OpenTelemetry for .NET", VersioningSystemId.EdotDotnet, pa.EdotDotnet)
198+
@RenderProduct("EDOT .NET", "Elastic Distribution of OpenTelemetry .NET", VersioningSystemId.EdotDotnet, pa.EdotDotnet)
199199
;
200200
}
201201

202202
if (pa.EdotJava is not null)
203203
{
204-
@RenderProduct("EDOT Java", "Elastic Distributions of OpenTelemetry for Java", VersioningSystemId.EdotJava, pa.EdotJava)
204+
@RenderProduct("EDOT Java", "Elastic Distribution of OpenTelemetry Java", VersioningSystemId.EdotJava, pa.EdotJava)
205205
;
206206
}
207207

208208
if (pa.EdotNode is not null)
209209
{
210-
@RenderProduct("EDOT Node.js", "Elastic Distributions of OpenTelemetry for Node.js", VersioningSystemId.EdotNode, pa.EdotNode)
210+
@RenderProduct("EDOT Node.js", "Elastic Distribution of OpenTelemetry Node.js", VersioningSystemId.EdotNode, pa.EdotNode)
211211
;
212212
}
213213

214214
if (pa.EdotPhp is not null)
215215
{
216-
@RenderProduct("EDOT PHP", "Elastic Distributions of OpenTelemetry for PHP", VersioningSystemId.ApmAgentPhp, pa.EdotPhp)
216+
@RenderProduct("EDOT PHP", "Elastic Distribution of OpenTelemetry PHP", VersioningSystemId.ApmAgentPhp, pa.EdotPhp)
217217
;
218218
}
219219

220220
if (pa.EdotPython is not null)
221221
{
222-
@RenderProduct("EDOT Python", "Elastic Distributions of OpenTelemetry for Python", VersioningSystemId.EdotPython, pa.EdotPython)
222+
@RenderProduct("EDOT Python", "Elastic Distribution of OpenTelemetry Python", VersioningSystemId.EdotPython, pa.EdotPython)
223+
;
224+
}
225+
226+
if (pa.EdotCfAws is not null)
227+
{
228+
@RenderProduct("EDOT CF AWS", "Elastic Distribution of OpenTelemetry Cloud Forwarder for AWS", VersioningSystemId.EdotCfAws, pa.EdotCfAws)
223229
;
224230
}
225231
}

src/Elastic.Markdown/Myst/FrontMatter/ApplicableTo.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ public record ProductApplicability
174174

175175
[YamlMember(Alias = "edot_python")]
176176
public AppliesCollection? EdotPython { get; set; }
177+
178+
[YamlMember(Alias = "edot_cf_aws")]
179+
public AppliesCollection? EdotCfAws { get; set; }
177180
}
178181

179182
public class ApplicableToConverter : IYamlTypeConverter
@@ -185,7 +188,7 @@ public class ApplicableToConverter : IYamlTypeConverter
185188
"elasticsearch", "observability", "security",
186189
"ecctl", "curator",
187190
"apm_agent_android","apm_agent_dotnet", "apm_agent_go", "apm_agent_ios", "apm_agent_java", "apm_agent_node", "apm_agent_php", "apm_agent_python", "apm_agent_ruby", "apm_agent_rum",
188-
"edot_ios", "edot_android", "edot_dotnet", "edot_java", "edot_node", "edot_php", "edot_python"
191+
"edot_ios", "edot_android", "edot_dotnet", "edot_java", "edot_node", "edot_php", "edot_python", "edot_cf_aws"
189192
];
190193

191194
public bool Accepts(Type type) => type == typeof(ApplicableTo);
@@ -393,7 +396,8 @@ private static bool TryGetProductApplicability(Dictionary<object, object?> dicti
393396
{ "edot_java", a => productAvailability.EdotJava = a },
394397
{ "edot_node", a => productAvailability.EdotNode = a },
395398
{ "edot_php", a => productAvailability.EdotPhp = a },
396-
{ "edot_python", a => productAvailability.EdotPython = a }
399+
{ "edot_python", a => productAvailability.EdotPython = a },
400+
{ "edot_cf_aws", a => productAvailability.EdotCfAws = a }
397401
};
398402

399403
foreach (var (key, action) in mapping)

0 commit comments

Comments
 (0)