實驗室一些可以展示的專案與服務,老師說要拿著它們到處炫耀🥳
請直接對 /public/assets/yamls/project.yaml 進行修改與提交
提交檔案前請先進行格式驗證
提交後請等待約2分鐘左右,新的內容才會顯示在網頁上
該檔案採用yaml格式,可以簡單參閱一下語法規則
請特別注意key: value
,冒號後面有一個半形空白。
圖片可放置在外網圖床或是本repo中,連結格式:/assets/images/圖檔名稱
- fullName: str
shortName: str
image: optional # 如果沒有圖片請將此key刪除
context: str
tags: [tag_a, tag_b, tag_c]
authors: [{name: str,link: str}]
links: [{name: str,style: str, href: str}]
# 可用style: btn-primary, btn-secondary, btn-success, btn-danger, btn-warning, btn-info, btn-light, btn-dark
# https://getbootstrap.com/docs/5.1/components/buttons/
gitRepo: optional #格式:username/repo,如果無值請刪除此key
範例
- fullName: Nerual Distractor Generator
shortName: BDG
image: /assets/images/lab-logo.png
context: 閱讀理解多選題干擾選項生成,給文章,問題和答案生成干擾選項
tags: [Distractor, Text Generation]
authors: [{name: Eric Lam, link: https://github.com/voidful}]
links: [
{name: Demo, style: btn-primary, href: https://github.com/voidful/BDG}
]
gitRepo: voidful/BDG
基本上你不需要自己部署,已經設定好github action,修改完畢後推送到repo的時候會自動執行
確定secrets.ACCESS_TOKEN
有被正確設置在repo中即可
這個專案架設在gh-pages,如果需要更換網址請重新設定
- package.json
homepage
- public/CNAME
第一次clone下來先執行npm install
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.