diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index dc667b5..2796828 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -199,6 +199,7 @@ }, "active": "80266ee6e0ac306d", "lastOpenFiles": [ + "generate_docs.py", "百家/野生动物+物理地形.md", "百家/code_artifact.md", "百家", @@ -243,7 +244,6 @@ "小鱼/闲鱼数据分析_2026-09-16.md", "Ai/hermes/岗位卡.md", "小鱼/闲鱼近30天运营复盘_2026-07-25.md", - "Ai/codex/AGENTS.md", - "思睿/七年级/作文/七年级作文批改规范提示词.md" + "Ai/codex/AGENTS.md" ] } \ No newline at end of file diff --git a/generate_docs.py b/generate_docs.py new file mode 100644 index 0000000..f00fd1c --- /dev/null +++ b/generate_docs.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +import os +import sys + +def write_file(path, content): + os.makedirs(os.path.dirname(path), exist_ok=True) + with open(path, 'w', encoding='utf-8') as f: + f.write(content.strip() + '\n') + print(f'Wrote {path}: {len(content)} chars') +