feat: Release v0.10 - Modular Architecture & External Config

- Refactor codebase into src/ (preprocessing, translation, assembly)
- Add pipeline/ scripts for individual stages
- Externalize configuration to config/config.yaml
- Fix Cover Image preservation
- Update documentation and manuals
This commit is contained in:
谭凯
2026-01-31 22:49:44 +08:00
parent 9ef82393be
commit 7a93c52b42
306 changed files with 30313 additions and 1071 deletions
+24
View File
@@ -0,0 +1,24 @@
from pathlib import Path
def get_work_dirs(input_path: Path) -> dict:
"""
Get unified work directory paths for a specific book.
Structure:
.work/
├── {book_name}/
│ ├── book_structure.json
│ ├── manifest.json
│ ├── assets/
│ └── chunks/
"""
book_name = input_path.stem
work_root = Path(".work") / book_name
return {
"root": work_root,
"structure": work_root / "book_structure.json",
"manifest": work_root / "manifest.json",
"assets": work_root / "assets",
"chunks": work_root / "chunks",
}