diff --git a/src/DocNet/Config.cs b/src/DocNet/Config.cs index 0b639b9..159073f 100644 --- a/src/DocNet/Config.cs +++ b/src/DocNet/Config.cs @@ -110,6 +110,21 @@ namespace Docnet } } + internal void Generate404Page(NavigationContext navigationContext) + { + var simpleNavigationElement = new NotFoundNavigationElement + { + ParentContainer = Pages + }; + + var navigatedPath = new NavigatedPath(); + navigatedPath.Push(this.Pages); + + simpleNavigationElement.GenerateOutput(this, navigatedPath, navigationContext); + + navigatedPath.Pop(); + } + internal void ClearDestinationFolder() { if(string.IsNullOrWhiteSpace(this.Destination)) @@ -151,7 +166,7 @@ namespace Docnet var activePath = new NavigatedPath(); activePath.Push(this.Pages); var searchSimpleElement = new SimpleNavigationElement() {Name = "Search", Value = "Docnet_search.htm", IsIndexElement = false, ParentContainer = this.Pages}; - searchSimpleElement.ContentProducerFunc = e=>@" + searchSimpleElement.ContentProducerFunc = (e,c,n) =>@"