一个 AlloyTeam 博客文章本地备份爬虫,自动加盘古之白,自动格式化代码,图片和附件自动上传 COS,转换为带 FrontMatter 的精美的 Markdown,博客迁移时有备无患。
每天 0 点更新的 Markdown 文件列表参见 docs 目录。
用 GitHub Pages 托管的简易演示站:https://rikumi.dev/alloyteam-md/
如果需要自动上传 COS,需要创建 .env 文件:
COS_SECRET_ID=<COS 的 SecretId>
COS_SECRET_KEY=<COS 的 SecretKey>
COS_BUCKET=<COS 的 Bucket>
COS_REGION=<COS 的 Region>
然后运行 npm run build
即可在 docs
里看到生成的文章。