Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin-web/main'
Browse files Browse the repository at this point in the history
daveaglick committed Nov 30, 2022
2 parents 80dbe6f + 4d4e851 commit 21c63eb
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Statiq.Web/Pipelines/SearchIndex.cs
Original file line number Diff line number Diff line change
@@ -46,7 +46,9 @@ public SearchIndex()

// Create the module
GenerateLunrIndex generateLunrIndex = new GenerateLunrIndex()
.WithIndexPath(ctx.GetPath(WebKeys.SearchScriptPath))
.WithScriptPath(ctx.GetPath(WebKeys.SearchScriptPath, NormalizedPath.Null))
.WithIndexPath(ctx.GetPath(WebKeys.SearchIndexPath, NormalizedPath.Null))
.WithResultsPath(ctx.GetPath(WebKeys.SearchResultsPath, NormalizedPath.Null))
.ZipIndexFile(ctx.GetBool(WebKeys.ZipSearchIndexFile, true))
.ZipResultsFile(ctx.GetBool(WebKeys.ZipSearchResultsFile, true))
.IncludeHostInLinks(ctx.GetBool(WebKeys.SearchIncludeHost))
12 changes: 11 additions & 1 deletion src/Statiq.Web/WebKeys.cs
Original file line number Diff line number Diff line change
@@ -61,6 +61,16 @@ public static class WebKeys
/// </summary>
public const string SearchScriptPath = nameof(SearchScriptPath);

/// <summary>
/// The destination path of the search index file ("search.index.json" or "search.index.json.gz" by default).
/// </summary>
public const string SearchIndexPath = nameof(SearchIndexPath);

/// <summary>
/// The destination path of the search results file ("search.results.json" or "search.results.json.gz" by default).
/// </summary>
public const string SearchResultsPath = nameof(SearchResultsPath);

/// <summary>
/// Indicates whether the search index file should be gzipped (the default is <c>true</c>).
/// If this is <c>true</c>, the JavaScript library pako must be included on the client to decompress the file.
@@ -567,4 +577,4 @@ public static class WebKeys

public const string AzureAppServicePassword = nameof(AzureAppServicePassword);
}
}
}

1 comment on commit 21c63eb

@atiq-cs
Copy link

@atiq-cs atiq-cs commented on 21c63eb Dec 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dotnet run fails due to change above; more in #1001

Please sign in to comment.