refactor(config): 重构配置类以支持动态元数据字段

配置类 ThesisConfig 现在使用 metadata 字典直接透传 TOML 配置,
无需为每个变量单独声明字段。新增模板变量只需修改 TOML 文件,
无需修改 Python 代码。

BREAKING CHANGE: 配置文件结构发生改变,从单独字段改为统一的
metadata 节点。
This commit is contained in:
zzy
2026-05-08 23:07:23 +08:00
parent 74d28ea2d8
commit fc6afdea9d
3 changed files with 24 additions and 43 deletions

4
.gitignore vendored
View File

@@ -20,3 +20,7 @@ wheels/
*.docx
*.doc
*.txt
.vscode/
.tmp/
*.toml