mirror of
https://github.com/tradecatlabs/vibe-coding-cn.git
synced 2026-08-09 17:10:58 +00:00
docs: research - add domains and resource registry
This commit is contained in:
@@ -65,6 +65,8 @@ def should_skip(directory: Path) -> bool:
|
||||
rel = directory.relative_to(ROOT)
|
||||
if any(part in SKIP_PARTS for part in rel.parts):
|
||||
return True
|
||||
if is_research_repository_snapshot(rel):
|
||||
return True
|
||||
if directory.is_symlink():
|
||||
return True
|
||||
if any(rel == prefix or prefix in rel.parents for prefix in SKIP_PREFIXES):
|
||||
@@ -72,6 +74,17 @@ def should_skip(directory: Path) -> bool:
|
||||
return any(vendor in rel.parents for vendor in VENDOR_SUBTREES)
|
||||
|
||||
|
||||
def is_research_repository_snapshot(rel: Path) -> bool:
|
||||
parts = rel.parts
|
||||
return (
|
||||
len(parts) >= 5
|
||||
and parts[0] == "docs"
|
||||
and parts[1] == "research"
|
||||
and parts[3] == "raw"
|
||||
and parts[4] == "repository"
|
||||
)
|
||||
|
||||
|
||||
def repository_owned_dirs() -> list[Path]:
|
||||
dirs = set(REQUIRED_DIRS)
|
||||
for directory in ROOT.rglob("*"):
|
||||
|
||||
Reference in New Issue
Block a user