| 項目 | 內容 |
|---|---|
| 事件日期 | 2026-08-08 |
| 問題描述 | 首頁右側邊欄消失,下方索引標籤全部連在一起,版面散架 |
| 根本原因 | style/main.css 缺少關鍵樣式定義 |
| 解決方案 | 重寫完整 CSS v1.2,補齊所有版面樣式 |
| 狀態 | ✅ 已解決並部署 |
❌ 不建議:直接雙擊 index.html(file:// 協定無法正確解析絕對路徑)
<p><table>)| 項目 | 內容 |
|---|---|
| 問題 | AI 生成表格時使用 <p><table> 包裹,導致版面錯亂 |
| 影響文章 | rainy-night-flower-lo-fi-cover.html |
| 根本原因 | AI 輸出格式不規範,且系統未攔截 |
| 解決方案 | 在 article_generator.py 新增 _normalize_tables() 函數,自動修正 |
| 版本 | v8.4 |
| 狀態 | ✅ 已修復 |
→
add-articles.ps1 與 pending-articles.json 的正確使用問題:add-articles.ps1 對 pending-songs.json 強制要求 video_id 欄位,導致一般文章被跳過。
解決方案:一般文章(無 YouTube 影片)應寫入 data/pending-articles.json,而非 pending-songs.json。
| 情境 | 正確 JSON 路徑 | 說明 |
|---|---|---|
| 音樂文章(含 YouTube 影片) | data/pending-songs.json | 需含 video_id |
| 一般文章(無影片) | data/pending-articles.json | 無需 video_id |
music/打工人心酸語錄.html 違反死命令 2(英文檔名強制規範)| 元件 | 版本 | 狀態 | 備註 |
|---|---|---|---|
main.css | v1.2 | ✅ 已部署 | 10813 bytes |
html_builder.py | v6.7 | ✅ 已部署 | Giscus 留言系統統一 |
article_generator.py | v8.4 | ✅ 已部署 | 表格標準化 (_normalize_tables) |
api_client.py | v4.1 | ✅ 已部署 | Responses API + Reasoning |
add-articles.ps1 | v3.3 | ✅ 已部署 | UTF-8 無 BOM 寫入 |
preflight-check.ps1 | v2.1 | ✅ 已部署 | 含中文檔名檢查 |
meme-to-song.ps1 | v1.2 | ✅ 已上線 | 強制英文檔名 |
| # | 決策 | 說明 | 狀態 |
|---|---|---|---|
| 1 | Responses API + Reasoning 正式啟用 | 文章品質從 82.4 分提升至 90 分 | ✅ 已啟用 |
| 2 | 英文檔名死命令 | 即日起所有新文章檔名強制使用英文 | ✅ 已生效 |
| 3 | article_generator.py 升級至 v8.4 | 新增 _normalize_tables() 自動修正表格結構 | ✅ 已部署 |
| 4 | html_builder.py 升級至 v6.7 | 統一 Giscus 留言系統樣式 | ✅ 已部署 |
| 5 | 一般文章改寫入 pending-articles.json | 避免 add-articles.ps1 的 video_id 驗證阻擋 | ✅ 已修正 |
生效日期:2026-08-07
.\scripts\preflight-check.ps1生效日期:2026-08-08
worker-blues-original-song.html打工人心酸語錄.htmlGet-ChildItem -Recurse -Filter "*.html" | Where-Object { $_.Name -match '[\u4e00-\u9fa5]' }生效日期:2026-08-08
npx wrangler pages dev . 或 python -m http.server 8000 啟動本地伺服器測試index.html 進行測試| 用途 | 指令 |
|---|---|
| 本地測試 | npx wrangler pages dev . |
| 完整部署 | .\scripts\ahpal-master.ps1 → [1] |
| 快速部署 | .\scripts\ahpal-master.ps1 → [6] |
| 新增一般文章 | 編輯 data/pending-articles.json → .\scripts\add-articles.ps1 -Force |
| 新增音樂文章 | 編輯 data/pending-songs.json → .\scripts\add-articles.ps1 -Force |
| 死命令檢查 | .\scripts\preflight-check.ps1 |
| 全面系統檢查 | .\scripts\check-all.ps1 -Report |
| 檢查中文檔名 | Get-ChildItem -Recurse -Filter "*.html" | Where-Object { $_.Name -match '[\u4e00-\u9fa5]' } |
| # | 事項 | 優先級 | 說明 |
|---|---|---|---|
| 1 | 將 music/打工人心酸語錄.html 重新命名為英文 |
🟡 中 | 建議修正為 worker-blues-original-song.html |
| 2 | 清理測試檔案 | 🟢 低 | test-schema-fix.html、test-lyrics-style.html 可刪除 |
| 3 | 確認兩篇新文章已生成 | ✅ 已完成 | NAS 相片備份 & Suno AI 指南 |
pending-articles.json 與 pending-songs.json 的差異add-articles.ps1 的正確使用方式article_generator.py v8.4 的表格標準化功能本附錄自 2026 年 8 月 8 日 起生效,與三大件文件並列為 AI 交接之標準文件。
「董事長死命令」為最高指導原則,任何違反行為將被記錄並追究責任。