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
2 changes: 1 addition & 1 deletion src/docs-assembler/Building/AssemblerBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private async Task BuildAsync(Checkout checkout, PublishEnvironment environment,
StaticUrlPathPrefix = environment.PathPrefix,
UrlPathPrefix = pathPrefix,
Force = true,
AllowIndexing = true
AllowIndexing = environment.AllowIndexing
};

var set = new DocumentationSet(buildContext, logger, crossLinkResolver);
Expand Down
3 changes: 3 additions & 0 deletions src/docs-assembler/Configuration/AssemblyConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,7 @@ public record PublishEnvironment

[YamlMember(Alias = "path_prefix")]
public string? PathPrefix { get; set; } = string.Empty;

[YamlMember(Alias = "allow_indexing")]
public bool AllowIndexing { get; set; }
}
1 change: 1 addition & 0 deletions src/docs-assembler/assembler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ environments:
production:
uri: https://elastic.co
path_prefix: docs
allow_indexing: false
staging:
uri: https://staging-website.elastic.co
path_prefix: docs
Expand Down