-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcombine_docs.py
More file actions
33 lines (28 loc) · 1014 Bytes
/
combine_docs.py
File metadata and controls
33 lines (28 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python3
"""Combine all Dark Factory roadmap docs into a single markdown file."""
import os
DOCS_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "docs")
OUTPUT_FILE = os.path.join(DOCS_DIR, "combined-roadmap.md")
FILES = [
"00-ROADMAP-INDEX.md",
"01-architecture-overview.md",
"02-claude-code-infrastructure.md",
"03-pipeline-design.md",
"04-validation-system.md",
"05-digital-twin-universe.md",
"06-spec-system.md",
"07-build-order.md",
"08-directory-structure.md",
"09-scripts-automation.md",
"10-risks-decisions.md",
]
with open(OUTPUT_FILE, "w") as out:
for i, filename in enumerate(FILES):
filepath = os.path.join(DOCS_DIR, filename)
with open(filepath, "r") as f:
content = f.read()
out.write(content)
# Add separator between files (not after the last one)
if i < len(FILES) - 1:
out.write("\n\n---\n\n")
print(f"Combined {len(FILES)} files into {OUTPUT_FILE}")