File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ outline: deep
33
33
$ npm run docs:preview
34
34
```
35
35
36
- ` preview ` 命令将启动一个本地静态 Web 服务器` http://localhost:4173 ` ,该服务器以 ` .vitepress/dist ` 作为源文件。这是检查生产版本在本地环境中是否正常的一种简单方法。
36
+ ` preview ` 命令将启动一个本地静态 Web 服务器` http://localhost:4173 ` ,该服务器以 ` .vitepress/dist ` 作为源文件。这是检查生产版本在本地环境中是否正常的一种简单方法。
37
37
38
38
3 . 可以通过传递 ` --port ` 作为参数来配置服务器的端口。
39
39
@@ -45,7 +45,7 @@ outline: deep
45
45
}
46
46
```
47
47
48
- 现在 ` docs:preview ` 方法将在 ` http://localhost:8080 ` 启动服务器。
48
+ 现在 ` docs:preview ` 方法将在 ` http://localhost:8080 ` 启动服务器。
49
49
50
50
## 设定 public 根目录 {#setting-a-public-base-path}
51
51
@@ -121,7 +121,7 @@ Cache-Control: max-age=31536000,immutable
121
121
122
122
1 . 在项目的 ` .github/workflows ` 目录中创建一个名为 ` deploy.yml ` 的文件,其中包含这样的内容:
123
123
124
- ``` yaml
124
+ ``` yaml
125
125
# 构建 VitePress 站点并将其部署到 GitHub Pages 的示例工作流程
126
126
#
127
127
name : Deploy VitePress site to Pages
@@ -191,7 +191,7 @@ Cache-Control: max-age=31536000,immutable
191
191
` ` `
192
192
193
193
::: warning
194
- 确保 VitePress 中的 ` base` 选项配置正确。有关更多详细信息,请参阅[设置根路径](#setting-a-public-base-path)。
194
+ 确保 VitePress 中的 ` base` 选项配置正确。有关更多详细信息,请参阅[设置根路径](#setting-a-public-base-path)。
195
195
:: :
196
196
197
197
2. 在存储库设置中的“Pages”菜单项下,选择“Build and deployment > Source > GitHub Actions”。
You can’t perform that action at this time.
0 commit comments