Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docs/testing/req.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
---
applies_to:
stack: preview 9.0, ga 9.1
stack: ga
serverless:
elasticsearch: ga
mapped_pages:
- https://www.elastic.co/guide/en/elasticsearch/reference/current/es-connectors-usage.html
---

# Requirements

```{applies_to}
Expand Down
1 change: 1 addition & 0 deletions src/tooling/docs-assembler/AssembleContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using System.Reflection;
using Elastic.Documentation.Configuration;
using Elastic.Documentation.Configuration.Assembler;
using Elastic.Documentation.Configuration.Versions;
using Elastic.Documentation.Diagnostics;

namespace Documentation.Assembler;
Expand Down
19 changes: 3 additions & 16 deletions src/tooling/docs-assembler/Cli/RepositoryCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
using Elastic.Markdown.Exporters;
using Elastic.Markdown.IO;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

namespace Documentation.Assembler.Cli;

internal sealed class RepositoryCommands(ICoreService githubActionsService, ILoggerFactory logger)
internal sealed class RepositoryCommands(ICoreService githubActionsService, ILoggerFactory logger, IOptions<VersionsConfiguration> versionsConfigOption)
{
private readonly ILogger<Program> _log = logger.CreateLogger<Program>();

Expand Down Expand Up @@ -166,20 +167,6 @@ public async Task<int> UpdateLinkIndexAll(ContentSource contentSource, Cancel ct
{
{ NarrativeRepository.RepositoryName, assembleContext.Configuration.Narrative }
};
var versionsConfig = new VersionsConfiguration
{
VersioningSystems = new Dictionary<VersioningSystemId, VersioningSystem>
{
{
VersioningSystemId.Stack, new VersioningSystem
{
Id = VersioningSystemId.Stack,
Current = new SemVersion(8, 0, 0),
Base = new SemVersion(8, 0, 0)
}
}
}
};
await Parallel.ForEachAsync(repositories,
new ParallelOptions
{
Expand All @@ -195,7 +182,7 @@ await Parallel.ForEachAsync(repositories,
collector,
new FileSystem(),
new FileSystem(),
versionsConfig,
versionsConfigOption.Value,
checkout.Directory.FullName,
outputPath
);
Expand Down
1 change: 1 addition & 0 deletions src/tooling/docs-assembler/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
.AddSingleton<DiagnosticsCollector>()
);


ConsoleApp.ServiceProvider = serviceProvider;

var app = ConsoleApp.Create();
Expand Down
Loading