Skip to content

Latest commit

 

History

History
90 lines (75 loc) · 3.13 KB

README_CH.md

File metadata and controls

90 lines (75 loc) · 3.13 KB

Node.js >= 18.0.0 VitePress 1.3.4

vitepress-theme-trigger

為建立部落格而生的 VitePress + Tailwind CSS 主題

簡介

「Trigger」是一個開箱即用的 VitePress 主題,以我很喜歡的漫畫作品 World Trigger 命名。你可以直接使用它,或者根據需求或喜好進一步修改。

有關自定義主題的資訊 :

如果有任何問題,歡迎直接提issue。

更新日誌

有關更新的細節都紀錄在 CHANGELOG

主題特色

先決條件

  • Node.js 版本最低需求為 18.0.0

如何使用

# 安裝依賴套件
(p)npm install

# 在/posts目錄下建立新文章
(p)npm run new {new-post-filename}

# 啟動本機伺服器
(p)npm run dev

# 打包APP
(p)npm run build

# 預覽APP
(p)npm run preview

部署

我們的專案包含了GitHub workflow,你只需要確認themeConfig.base設定正確,在推送到GitHub之後將會觸發GitHub pages的自動部署流程。

# amplify.yml
version: 1
frontend:
  phases:
    preBuild:
      commands:
        - nvm use 18
        - npm install -g pnpm
        - pnpm install --no-frozen-lockfile
    build:
      commands:
        - pnpm run build
  artifacts:
    baseDirectory: ./.vitepress/dist
    files:
      - '**/*'
  cache:
    paths:
      - node_modules/**/*

參考