Skip to content

Commit a229c63

Browse files
authored
Bump ConsoleAppFramework and remove Elastic.Documentation.Tooling (#2188)
* Bump ConsoleAppFramework and remove Elastic.Documentation.Tooling * format * simplify name
1 parent 4808b5d commit a229c63

23 files changed

+40
-157
lines changed

Directory.Packages.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
<PackageVersion Include="FSharp.Core" Version="9.0.202" />
5050
</ItemGroup>
5151
<ItemGroup>
52-
<PackageVersion Include="ConsoleAppFramework" Version="5.6.2" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
53-
<PackageVersion Include="ConsoleAppFramework.Abstractions" Version="5.4.1" />
52+
<PackageVersion Include="ConsoleAppFramework" Version="5.7.2" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
53+
<PackageVersion Include="ConsoleAppFramework.Abstractions" Version="5.7.2" />
5454
<PackageVersion Include="Crayon" Version="2.0.69" />
5555
<PackageVersion Include="DotNet.Glob" Version="3.1.3" />
5656
<PackageVersion Include="Errata" Version="0.14.0" />
@@ -99,4 +99,4 @@
9999
</PackageVersion>
100100
<PackageVersion Include="xunit.v3" Version="2.0.2" />
101101
</ItemGroup>
102-
</Project>
102+
</Project>

aspire/aspire.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@
1414
</PropertyGroup>
1515

1616
<ItemGroup>
17-
<PackageReference Include="ConsoleAppFramework" />
17+
<PackageReference Include="ConsoleAppFramework">
18+
<PrivateAssets>all</PrivateAssets>
19+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
20+
</PackageReference>
1821
<PackageReference Include="Aspire.Hosting.AppHost"/>
1922
<PackageReference Include="Elastic.Aspire.Hosting.Elasticsearch"/>
2023
</ItemGroup>
2124

2225
<ItemGroup>
2326
<ProjectReference Include="..\src\api\Elastic.Documentation.Api.Lambda\Elastic.Documentation.Api.Lambda.csproj" />
2427
<ProjectReference Include="..\src\tooling\docs-builder\docs-builder.csproj"/>
25-
26-
<ProjectReference Include="..\src\tooling\Elastic.Documentation.Tooling\Elastic.Documentation.Tooling.csproj" IsAspireProjectResource="false" />
2728
<ProjectReference Include="..\src\Elastic.Documentation\Elastic.Documentation.csproj" IsAspireProjectResource="false" />
2829
</ItemGroup>
2930

docs-builder.sln

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "authoring", "tests\authorin
5151
EndProject
5252
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elastic.Documentation.Refactor", "src\authoring\Elastic.Documentation.Refactor\Elastic.Documentation.Refactor.csproj", "{7D36DDDA-9E0B-4D2C-8033-5D62FF8B6166}"
5353
EndProject
54-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elastic.Documentation.Tooling", "src\tooling\Elastic.Documentation.Tooling\Elastic.Documentation.Tooling.csproj", "{4CCE599A-B9FE-4DF2-8763-34CF0A99D4AA}"
55-
EndProject
5654
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "validate-inbound-local", "validate-inbound-local", "{6E2ED6CC-AFC1-4E58-965D-6AEC500EBB46}"
5755
ProjectSection(SolutionItems) = preProject
5856
actions\validate-inbound-local\action.yml = actions\validate-inbound-local\action.yml
@@ -254,18 +252,6 @@ Global
254252
{7D36DDDA-9E0B-4D2C-8033-5D62FF8B6166}.Release|x64.Build.0 = Release|Any CPU
255253
{7D36DDDA-9E0B-4D2C-8033-5D62FF8B6166}.Release|x86.ActiveCfg = Release|Any CPU
256254
{7D36DDDA-9E0B-4D2C-8033-5D62FF8B6166}.Release|x86.Build.0 = Release|Any CPU
257-
{4CCE599A-B9FE-4DF2-8763-34CF0A99D4AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
258-
{4CCE599A-B9FE-4DF2-8763-34CF0A99D4AA}.Debug|Any CPU.Build.0 = Debug|Any CPU
259-
{4CCE599A-B9FE-4DF2-8763-34CF0A99D4AA}.Debug|x64.ActiveCfg = Debug|Any CPU
260-
{4CCE599A-B9FE-4DF2-8763-34CF0A99D4AA}.Debug|x64.Build.0 = Debug|Any CPU
261-
{4CCE599A-B9FE-4DF2-8763-34CF0A99D4AA}.Debug|x86.ActiveCfg = Debug|Any CPU
262-
{4CCE599A-B9FE-4DF2-8763-34CF0A99D4AA}.Debug|x86.Build.0 = Debug|Any CPU
263-
{4CCE599A-B9FE-4DF2-8763-34CF0A99D4AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
264-
{4CCE599A-B9FE-4DF2-8763-34CF0A99D4AA}.Release|Any CPU.Build.0 = Release|Any CPU
265-
{4CCE599A-B9FE-4DF2-8763-34CF0A99D4AA}.Release|x64.ActiveCfg = Release|Any CPU
266-
{4CCE599A-B9FE-4DF2-8763-34CF0A99D4AA}.Release|x64.Build.0 = Release|Any CPU
267-
{4CCE599A-B9FE-4DF2-8763-34CF0A99D4AA}.Release|x86.ActiveCfg = Release|Any CPU
268-
{4CCE599A-B9FE-4DF2-8763-34CF0A99D4AA}.Release|x86.Build.0 = Release|Any CPU
269255
{C559D52D-100B-4B2B-BE87-2344D835761D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
270256
{C559D52D-100B-4B2B-BE87-2344D835761D}.Debug|Any CPU.Build.0 = Debug|Any CPU
271257
{C559D52D-100B-4B2B-BE87-2344D835761D}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -530,7 +516,6 @@ Global
530516
{A2A34BBC-CB5E-4100-9529-A12B6ECB769C} = {245023D2-D3CA-47B9-831D-DAB91A2FFDC7}
531517
{018F959E-824B-4664-B345-066784478D24} = {67B576EE-02FA-4F9B-94BC-3630BC09ECE5}
532518
{7D36DDDA-9E0B-4D2C-8033-5D62FF8B6166} = {059E787F-85C1-43BE-9DD6-CE319E106383}
533-
{4CCE599A-B9FE-4DF2-8763-34CF0A99D4AA} = {73ABAE37-118F-4A53-BC2C-F19333555C90}
534519
{6E2ED6CC-AFC1-4E58-965D-6AEC500EBB46} = {245023D2-D3CA-47B9-831D-DAB91A2FFDC7}
535520
{6554F917-73CE-4B3D-9101-F28EAA762C6B} = {245023D2-D3CA-47B9-831D-DAB91A2FFDC7}
536521
{C559D52D-100B-4B2B-BE87-2344D835761D} = {4894063D-0DEF-4B7E-97D0-0D0A5B85C608}

src/Elastic.Documentation/Exporter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ public enum Exporter
1414
Configuration,
1515
DocumentationState,
1616
LinkMetadata,
17-
Redirects,
17+
Redirects
1818
}
19+
1920
public static class ExportOptions
2021
{
2122
public static HashSet<Exporter> Default { get; } = [Html, LLMText, Configuration, DocumentationState, LinkMetadata, Redirects];

src/Elastic.Markdown/Exporters/Elasticsearch/ElasticsearchExporter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,10 @@ private static string AbstractMapping() =>
255255
}
256256
""";
257257

258-
private static string InferenceMapping(string inferenceId) =>
258+
private static string InferenceMapping(string _) =>
259259
$"""
260260
"type": "semantic_text",
261-
"inference_id": "{inferenceId}"
261+
"inference_id": ".elser-2-elastic"
262262
""";
263263

264264
private static string AbstractInferenceMapping(string inferenceId) =>

src/tooling/Elastic.Documentation.Tooling/CompositeDisposableServiceProvider.cs

Lines changed: 0 additions & 76 deletions
This file was deleted.

src/tooling/Elastic.Documentation.Tooling/Elastic.Documentation.Tooling.csproj

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/tooling/Elastic.Documentation.Tooling/README.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/tooling/Elastic.Documentation.Tooling/Arguments/ExportOption.cs renamed to src/tooling/docs-builder/Arguments/ExportOption.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
// See the LICENSE file in the project root for more information
44

55
using ConsoleAppFramework;
6+
using Elastic.Documentation;
67
using static Elastic.Documentation.Exporter;
78

8-
namespace Elastic.Documentation.Tooling.Arguments;
9+
namespace Documentation.Builder.Arguments;
910

1011
[AttributeUsage(AttributeTargets.Parameter)]
1112
public class ExporterParserAttribute : Attribute, IArgumentParser<IReadOnlySet<Exporter>>
@@ -24,7 +25,7 @@ public static bool TryParse(ReadOnlySpan<char> s, out IReadOnlySet<Exporter> res
2425
"es" => Elasticsearch,
2526
"elasticsearch" => Elasticsearch,
2627
"html" => Html,
27-
"config" => Exporter.Configuration,
28+
"config" => Configuration,
2829
"links" => LinkMetadata,
2930
"state" => DocumentationState,
3031
"redirects" => Redirects,

src/tooling/docs-builder/Commands/Assembler/AssemblerCommands.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.IO.Abstractions;
66
using Actions.Core.Services;
77
using ConsoleAppFramework;
8+
using Documentation.Builder.Arguments;
89
using Documentation.Builder.Http;
910
using Elastic.Documentation;
1011
using Elastic.Documentation.Assembler.Building;
@@ -13,7 +14,6 @@
1314
using Elastic.Documentation.Configuration.Assembler;
1415
using Elastic.Documentation.Diagnostics;
1516
using Elastic.Documentation.Services;
16-
using Elastic.Documentation.Tooling.Arguments;
1717
using Microsoft.Extensions.Logging;
1818

1919
namespace Documentation.Builder.Commands.Assembler;

0 commit comments

Comments
 (0)