Skip to content

drjacqueshsu/NKUHT-Dashboard

Repository files navigation

NKUHT 校務公開資料儀表板

📤 上架到 GitHub Pages 步驟

1️⃣ 註冊 / 登入 GitHub

前往 https://github.com 註冊免費帳號(已有帳號跳過此步)。

2️⃣ 建立新的 Repository

  1. 登入後,點右上角 「+」「New repository」
  2. Repository name:輸入名稱,例如 nkuht-dashboard
  3. 選擇 Public(公開,免費版必選)
  4. 不要勾選「Add a README file」
  5. 「Create repository」

3️⃣ 上傳檔案

  1. 在新建立的 repository 頁面,點 「uploading an existing file」 連結 (或點 Add fileUpload files)
  2. 把這個資料夾裡所有檔案(除了 README.md 也可以一起上傳)拖曳上去
  3. 等檔案全部跑完進度條
  4. 下方點 「Commit changes」 綠色按鈕

4️⃣ 開啟 GitHub Pages

  1. 在 repository 頁面,點上方 「Settings」(齒輪圖示)
  2. 左側選單找到 「Pages」
  3. Source「Deploy from a branch」
  4. Branch「main」 + 「/ (root)」,點 「Save」
  5. 等 1-2 分鐘,頁面上方會出現綠色框框顯示網址:
    https://你的帳號.github.io/nkuht-dashboard/
    

5️⃣ 把網址傳給朋友 🎉


📁 檔案清單(共 12 個)

檔案 用途
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 fileUpload files → 拖入新版檔案 → Commit。 1-2 分鐘後網站會自動更新。

About

NKUHT-Dashboard(Open Data)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors