Skip to content

Commit cf3a69d

Browse files
author
huyutao
committed
修改base,解决github部署错误
1 parent 2c52884 commit cf3a69d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@
33
## 安装
44

55
``` shell
6-
yarn
6+
npm install
77
```
88

99
## 调试
1010

1111
```shell
12-
yarn docs:dev
12+
npm run docs:dev
1313
```
1414
浏览器打开 http://localhost:5173
1515

1616
## 部署
1717

1818
```shell
19-
yarn docs:build
19+
npm run docs:build
2020
```
2121

2222
本地预览,执行下列命令后,生成一个本地静态 Web 服务 http://localhost:4173,该服务以 .vitepress/dist 作为源文件
2323
```shell
24-
yarn docs:preview
24+
npm run docs:preview
2525
```
2626

docs/.vitepress/config.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default defineConfig({
88
description: "A 灵矽 Documentation Project",
99
lastUpdated: true,
1010
cleanUrls: true,
11+
base: "/Xrobot-docs/",
1112
locales: {
1213
root: {
1314
label: "简体中文",

0 commit comments

Comments
 (0)