private void GenerateSearchDataIndex()
{
var collectedSearchEntries = new List<SearchIndexEntry>();
this.Pages.CollectSearchIndexEntries(collectedSearchEntries, new NavigatedPath());
JObject searchIndex = new JObject(new JProperty("docs",
new JArray(
collectedSearchEntries.Select(e=>new JObject(
new JProperty("location", e.Location),
new JProperty("breadcrumbs", e.BreadCrumbs),
new JProperty("keywords", e.Keywords),
new JProperty("title", e.Title)))
)
));
File.WriteAllText(Utils.MakeAbsolutePath(this.Destination, "search_index.json"), searchIndex.ToString());
}