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:
@@ -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",
|
||||
}
|
||||
Reference in New Issue
Block a user