Skip to content

Commit 43170e4

Browse files
committed
feat: 初始化文档项目并添加基础配置
添加了VuePress文档项目的基础配置,包括主题设置、导航栏、侧边栏、样式文件、图片资源以及GitHub Actions部署工作流。同时,创建了多个文档页面,如大语言模型、多模态和开源项目的介绍页面。
0 parents  commit 43170e4

File tree

24 files changed

+7517
-0
lines changed

24 files changed

+7517
-0
lines changed

my-docs/.DS_Store

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

my-docs/.gitignore

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

0 commit comments

Comments
 (0)