Skip to content

Commit cfefaf8

Browse files
committed
init: 第一次提交
1 parent aa4628e commit cfefaf8

37 files changed

Lines changed: 4723 additions & 0 deletions

.github/workflows/deploy-docs.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: 部署文档
2+
3+
on:
4+
push:
5+
paths:
6+
- '.github/workflows/deploy-docs.yml'
7+
pull_request:
8+
paths:
9+
- '.github/workflows/deploy-docs.yml'
10+
11+
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
deploy-gh-pages:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
# 如果你文档需要 Git 子模块,取消注释下一行
24+
# submodules: true
25+
26+
- name: 设置 pnpm
27+
uses: pnpm/action-setup@v4
28+
with:
29+
version: 10
30+
31+
32+
- name: 设置 Node.js
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: latest
36+
cache: pnpm
37+
cache-dependency-path: pnpm-lock.yaml
38+
39+
- name: 安装依赖
40+
run: |
41+
corepack enable
42+
pnpm install --frozen-lockfile
43+
44+
- name: 构建文档
45+
env:
46+
NODE_OPTIONS: --max_old_space_size=8192
47+
run: |-
48+
pnpm run docs:build
49+
> src/.vuepress/dist/.nojekyll
50+
51+
- name: 部署文档
52+
uses: JamesIves/github-pages-deploy-action@v4
53+
with:
54+
# 部署文档
55+
branch: gh-pages
56+
folder: src/.vuepress/dist

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
node_modules/
3+
src/.vuepress/.cache/
4+
src/.vuepress/.temp/
5+
src/.vuepress/dist/
6+
.DS_Store
7+
.vscode/

LICENSE

Lines changed: 437 additions & 0 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "cherrydap",
3+
"description": "CherryDAP's documentation",
4+
"version": "1.0.0",
5+
"license": "CC-BY-SA 4.0",
6+
"type": "module",
7+
"scripts": {
8+
"docs:build": "vuepress-vite build src",
9+
"docs:clean-dev": "vuepress-vite dev src --clean-cache",
10+
"docs:dev": "vuepress-vite dev src",
11+
"docs:update-package": "pnpm dlx vp-update"
12+
},
13+
"devDependencies": {
14+
"@vuepress/bundler-vite": "2.0.0-rc.24",
15+
"vue": "^3.5.21",
16+
"vuepress": "2.0.0-rc.24",
17+
"vuepress-theme-hope": "2.0.0-rc.94"
18+
},
19+
"dependencies": {
20+
"@vuepress/plugin-markdown-image": "2.0.0-rc.112",
21+
"@vuepress/plugin-markdown-tab": "2.0.0-rc.112",
22+
"@vuepress/plugin-redirect": "2.0.0-rc.112",
23+
"sass-embedded": "^1.91.0"
24+
}
25+
}

0 commit comments

Comments
 (0)