Files
ChouJuGEO/scripts/move_reorganization_docs.py
T
刘国栋 8f7f082c3d feat: 重构项目结构并添加平台同步基础架构
- 重构项目目录结构,将功能模块移至 modules/ 目录
- 创建平台同步基础架构,包括发布器基类和 GitHub 发布器
- 新增 UI 状态管理模块 (modules/ui/state.py) 统一管理会话状态
- 更新依赖配置,添加平台同步所需依赖 (httpx, pyperclip)
- 整理文档结构,将所有文档分类移至 docs/ 目录
- 添加 .cursorrules 文件定义项目开发规范
- 清理根目录重复文件,保持项目结构整洁
2026-01-30 10:21:29 +08:00

51 lines
1.4 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
移动重组相关文档到 docs/guides/ 目录
"""
from pathlib import Path
import shutil
# 项目根目录
root = Path(__file__).parent
# 需要移动的重组相关文档
reorganization_docs = [
"DOCUMENTATION_CLEANUP_GUIDE.md",
"PROJECT_STRUCTURE_ANALYSIS.md",
"QUICK_REORGANIZE.md",
"REORGANIZATION_SUMMARY.md",
]
# 目标目录
target_dir = root / "docs" / "guides"
target_dir.mkdir(parents=True, exist_ok=True)
def move_reorganization_docs():
"""移动重组相关文档到 docs/guides/"""
moved_count = 0
print("开始移动重组相关文档到 docs/guides/...\n")
for doc_file in reorganization_docs:
src = root / doc_file
dest = target_dir / doc_file
if src.exists():
if dest.exists():
print(f"⚠ 跳过: {doc_file} (目标位置已存在)")
else:
try:
shutil.move(str(src), str(dest))
print(f"✓ 已移动: {doc_file} -> docs/guides/")
moved_count += 1
except Exception as e:
print(f"✗ 移动失败: {doc_file} - {e}")
else:
print(f" 不存在: {doc_file}")
print(f"\n✅ 移动完成!")
print(f" - 已移动: {moved_count} 个文件")
print(f"\n📌 这些文档现在位于: docs/guides/")
if __name__ == "__main__":
move_reorganization_docs()