[docs][refactor]: 将旧 01~06 中文教程合并整理为 modules/frameworks 文件夹结构
- 删除 01~05 旧中文教程目录 - 将 03 核心功能教程拆分为各 framework 模块的子文档 - 06 工具脚本移入 modules/frameworks/编辑器工具/UI工具/ - 非框架内容合并进 rules/20-开发规则.md 与 rules/40-工作流清单.md - 更新所有交叉链接与文档关联表 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
22
hooks/sync-doc-associations.ps1
Normal file
22
hooks/sync-doc-associations.ps1
Normal file
@@ -0,0 +1,22 @@
|
||||
# hooks/sync-doc-associations.ps1
|
||||
# Wrapper for sync_doc_associations.py
|
||||
# This script appends change reminders to associated .md files.
|
||||
# It only appends to standard sections; it never overwrites existing content.
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$scriptPath = $MyInvocation.MyCommand.Path
|
||||
if (-not [System.IO.Path]::IsPathRooted($scriptPath)) {
|
||||
$scriptPath = Join-Path (Get-Location) $scriptPath
|
||||
}
|
||||
$scriptPath = [System.IO.Path]::GetFullPath($scriptPath)
|
||||
$scriptDir = Split-Path -Parent $scriptPath
|
||||
$pythonScript = Join-Path $scriptDir "sync_doc_associations.py"
|
||||
|
||||
if (-not (Test-Path $pythonScript)) {
|
||||
Write-Error "Python script not found: $pythonScript"
|
||||
exit 1
|
||||
}
|
||||
|
||||
python "$pythonScript"
|
||||
exit $LASTEXITCODE
|
||||
Reference in New Issue
Block a user