docs: split docs readmes into topic files

This commit is contained in:
tradecatlabs
2026-06-01 00:48:27 +08:00
parent 93d9507a27
commit dddb9cd19b
54 changed files with 12565 additions and 13215 deletions
+6 -1
View File
@@ -122,7 +122,12 @@ def main() -> int:
changed: list[str] = []
errors: list[str] = []
for rel_path, main_anchors in doc_readmes_from_taxonomy().items():
doc_readmes = doc_readmes_from_taxonomy()
if not doc_readmes:
print("OK synced docs TOC blocks: 0 changed")
return 0
for rel_path, main_anchors in doc_readmes.items():
path = ROOT / rel_path
if not path.exists():
errors.append(f"{rel_path}: missing docs README")