Skip to content

Commit

Permalink
chore: add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Aug 12, 2024
1 parent e5041b4 commit 3c08c88
Show file tree
Hide file tree
Showing 23 changed files with 26,378 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: GitHub Pages

on:
push:
branches: [main]

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Install dependencies
working-directory: ./apps/docs
run: pnpm install

- name: Build
working-directory: ./apps/docs
run: pnpm run build
env:
FORCE_COLOR: 2

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./.vitepress/dist
github_token: ${{ secrets.GITHUB_TOKEN }}
commit_message: Update ghPages
force_orphan: true
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ yarn-error.log*
.env.production.local

# turbo
.turbo
.turbo

# vitepress build output
.vitepress/dist
.vitepress/cache
31 changes: 31 additions & 0 deletions apps/docs/.vitepress/cache/deps/_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"hash": "9b97caae",
"configHash": "f905bf12",
"lockfileHash": "087383d4",
"browserHash": "f7d27ace",
"optimized": {
"vue": {
"src": "../../../../../node_modules/.pnpm/[email protected][email protected]/node_modules/vue/dist/vue.runtime.esm-bundler.js",
"file": "vue.js",
"fileHash": "55cb461f",
"needsInterop": false
},
"vitepress > @vue/devtools-api": {
"src": "../../../../../node_modules/.pnpm/@[email protected]/node_modules/@vue/devtools-api/dist/index.js",
"file": "vitepress___@vue_devtools-api.js",
"fileHash": "9eb56f49",
"needsInterop": false
},
"vitepress > @vueuse/core": {
"src": "../../../../../node_modules/.pnpm/@[email protected][email protected][email protected]_/node_modules/@vueuse/core/index.mjs",
"file": "vitepress___@vueuse_core.js",
"fileHash": "15cdccdc",
"needsInterop": false
}
},
"chunks": {
"chunk-JSAMQLXU": {
"file": "chunk-JSAMQLXU.js"
}
}
}
Loading

0 comments on commit 3c08c88

Please sign in to comment.