Microsoft.SourceBrowser.HtmlGenerator.ProjectGenerator.AddHtmlFilesToRedirectMap C# (CSharp) Method

AddHtmlFilesToRedirectMap() private method

private AddHtmlFilesToRedirectMap ( ) : void
return void
        private void AddHtmlFilesToRedirectMap()
        {
            var files = Directory
                            .GetFiles(ProjectDestinationFolder, "*.html", SearchOption.AllDirectories);
            foreach (var file in files)
            {
                var relativePath = file.Substring(ProjectDestinationFolder.Length + 1).Replace('\\', '/');
                relativePath = relativePath.Substring(0, relativePath.Length - 5); // strip .html
                AddFileToRedirectMap(relativePath);
                OtherFiles.Add(relativePath);
            }
        }