Skip to content

Commit 38a05f0

Browse files
author
zhangshuai
committed
fix
1 parent 82e1638 commit 38a05f0

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

.github/workflows/deploy.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 16
16+
cache: yarn
17+
- run: yarn install --frozen-lockfile
18+
19+
- name: Build
20+
run: yarn docs:build
21+
22+
- name: Deploy
23+
uses: peaceiris/actions-gh-pages@v3
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_dir: docs/.vitepress/dist

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
docs/.vitepress/dist

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## doc

docs/.vitepress/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { defineConfig } from 'vitepress'
22

33
export default defineConfig({
4+
base: '/my-doc/',
45
title: '个人文档',
56
description: '个人学习过程中的笔记',
67
lastUpdated: true,

0 commit comments

Comments
 (0)