refactor: research - move domain to repository root

This commit is contained in:
tradecatlabs
2026-07-09 04:01:30 +08:00
parent 16f5e03c78
commit 0858b7a3cf
260 changed files with 968 additions and 306 deletions
+5 -6
View File
@@ -62,11 +62,10 @@ def should_skip(path: Path) -> bool:
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"
len(parts) >= 4
and parts[0] == "research"
and parts[2] == "raw"
and parts[3] == "repository"
)
@@ -243,7 +242,7 @@ def main() -> int:
readme_paths = {Path("docs/README.md")}
for fields in taxonomy_sections().values():
entry = fields.get("entry", "")
if entry.startswith("docs/") and entry.endswith("/README.md"):
if entry.endswith("/README.md"):
readme_paths.add(Path(entry))
for rel_path in sorted(readme_paths):