public void Run() { var root = GitRepoDirectoryFinder.FindForFilePath(); DirectoryMarkdownProcessor processor = new( targetDirectory : root, shouldIncludeDirectory : path => !path.Contains("IncludeFileFinder") && !path.Contains("DirectoryMarkdownProcessor") && !DefaultDirectoryExclusions.ShouldExcludeDirectory(path), tocLevel : 1, tocExcludes : new List <string> { "Icon", "Credits", "Release Notes" }); processor.Run(); }
public static ShouldIncludeDirectory ExcludesToFilter(List <string> excludes) { excludes = GetExcludesWithBothSlashes(excludes).ToList(); return(path => !DefaultDirectoryExclusions.ShouldExcludeDirectory(path) && !excludes.Any(path.Contains)); }