This commit is contained in:
2025-10-07 12:38:24 +08:00
commit a8c4672612
105 changed files with 4317 additions and 0 deletions

16
scripts/copy.ts Normal file
View File

@@ -0,0 +1,16 @@
import * as fs from 'fs';
import * as path from 'path';
const targetDir = path.join('.vitepress', 'dist', 'pdf');
const sourceFile = path.join('pdf', 'book.pdf');
const targetFile = path.join(targetDir, 'book.pdf');
// 创建目标文件夹(如果不存在)
if (!fs.existsSync(targetDir)) {
fs.mkdirSync(targetDir, { recursive: true });
}
// 复制文件
fs.copyFileSync(sourceFile, targetFile);
console.log('PDF 已复制到 .vitepress/dist/pdf/book.pdf');