Docnet.Config.GenerateSearchDataIndex C# (CSharp) Method

GenerateSearchDataIndex() private method

Generates the index of the search data. this is a json file with per page which has markdown a couple of data elements.
private GenerateSearchDataIndex ( ) : void
return void
        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());
        }