diff --git a/strictdoc/core/file_tree.py b/strictdoc/core/file_tree.py index ba95c0476..8225a42ba 100644 --- a/strictdoc/core/file_tree.py +++ b/strictdoc/core/file_tree.py @@ -176,7 +176,14 @@ def find_files_with_extensions( dirs[:] = [ d for d in dirs - if (not d.startswith(".") and not d.startswith("_")) + if ( + not d.startswith(".") + and not d.startswith("_") + and d != "build" + and d != "output" + and d != "Output" + and d != "tests" + ) ] dirs.sort(key=alphanumeric_sort) @@ -259,6 +266,8 @@ def find_directories(root_path, directory): d for d in dirs if not d.startswith(".") + and not d.startswith("__") + and d != "build" and d != "output" and d != "Output" and d != "tests"