docs: research - add domains and resource registry

This commit is contained in:
tradecatlabs
2026-07-03 08:04:50 +08:00
parent 169fc9d073
commit cdb402f536
254 changed files with 28589 additions and 165 deletions
+13
View File
@@ -47,9 +47,22 @@ def should_skip(path: Path) -> bool:
rel = path.relative_to(ROOT)
if any(part in SKIP_PARTS for part in rel.parts):
return True
if is_research_repository_snapshot(rel):
return True
return any(rel == prefix or prefix in rel.parents for prefix in SKIP_PREFIXES)
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 line_number(text: str, offset: int) -> int:
return text.count("\n", 0, offset) + 1