前往 https://github.com 註冊免費帳號(已有帳號跳過此步)。
- 登入後,點右上角 「+」 → 「New repository」
- Repository name:輸入名稱,例如
nkuht-dashboard - 選擇 Public(公開,免費版必選)
- 不要勾選「Add a README file」
- 點 「Create repository」
- 在新建立的 repository 頁面,點 「uploading an existing file」 連結 (或點 Add file → Upload files)
- 把這個資料夾裡所有檔案(除了 README.md 也可以一起上傳)拖曳上去
- 等檔案全部跑完進度條
- 下方點 「Commit changes」 綠色按鈕
- 在 repository 頁面,點上方 「Settings」(齒輪圖示)
- 左側選單找到 「Pages」
- Source 選 「Deploy from a branch」
- Branch 選 「main」 + 「/ (root)」,點 「Save」
- 等 1-2 分鐘,頁面上方會出現綠色框框顯示網址:
https://你的帳號.github.io/nkuht-dashboard/
| 檔案 | 用途 |
|---|---|
index.html |
主頁(必要) |
styles.css / stylesExtra.css |
樣式 |
data.js / unitData.js / util.js |
資料與工具 |
components.jsx / chartsExt.jsx / chartsExtra.jsx |
圖表元件 |
modules.jsx |
各分頁內容 |
app.jsx |
主應用 |
tweaks-panel.jsx |
微調面板 |
回到 repository 頁面 → Add file → Upload files → 拖入新版檔案 → Commit。 1-2 分鐘後網站會自動更新。