예제 #1
0
    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();
    }
예제 #2
0
 public static ShouldIncludeDirectory ExcludesToFilter(List <string> excludes)
 {
     excludes = GetExcludesWithBothSlashes(excludes).ToList();
     return(path => !DefaultDirectoryExclusions.ShouldExcludeDirectory(path) &&
            !excludes.Any(path.Contains));
 }