feat: add daily tip & case auto-publish system
- GitHub Actions workflow: daily-content.yml (UTC 00:00 / 北京 08:00) - Content generation script: .github/scripts/generate-daily.js (Claude API) - Initial data: website/daily/data.json - website/index.html: new 每日精选 section with bilingual support Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
22
website/daily/data.json
Normal file
22
website/daily/data.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"latest": {
|
||||
"date": "2026-04-02",
|
||||
"tip": {
|
||||
"title": { "zh": "便携模式:配置跟着 U 盘走", "en": "Portable Mode: Config Travels with Your USB" },
|
||||
"content": {
|
||||
"zh": "将 U-Claw 以便携模式运行时,所有配置、技能、模型 API Key 都保存在 U 盘本身,而非电脑上。换一台电脑插上 U 盘,立刻恢复完整工作环境。特别适合需要在多台电脑之间切换的开发者——出差时带上 U 盘,到哪里都是你熟悉的 AI 助手。",
|
||||
"en": "Running U-Claw in portable mode saves all configs, skills, and API keys on the USB drive itself, not the host computer. Plug into any machine and instantly restore your full environment — perfect for developers who work across multiple PCs or need a consistent AI setup on the go."
|
||||
},
|
||||
"tag": { "zh": "技巧", "en": "Tip" }
|
||||
},
|
||||
"case": {
|
||||
"title": { "zh": "用 U-Claw 一键审查 PR 代码", "en": "One-Click PR Code Review with U-Claw" },
|
||||
"content": {
|
||||
"zh": "某团队将 U-Claw 接入企业微信,配置「代码审查」技能。开发者提交 PR 后,直接将 diff 发给 AI,几秒钟内收到详细的审查意见:潜在 Bug、性能问题、代码风格建议一应俱全。审查效率提升 60%,同时覆盖了以往人工容易遗漏的边界条件。",
|
||||
"en": "A dev team connected U-Claw to their enterprise WeChat and configured the 'Code Review' skill. Developers paste PR diffs directly to the AI and get detailed feedback in seconds — bugs, performance issues, and style suggestions included. Review efficiency improved 60%, with better coverage of edge cases that manual review often misses."
|
||||
},
|
||||
"tag": { "zh": "案例", "en": "Case" }
|
||||
}
|
||||
},
|
||||
"history": []
|
||||
}
|
||||
Reference in New Issue
Block a user