fix ci
pull/1593/head
Xavi Lee 4 years ago
parent b789e4ed4f
commit 40ad8d0663

@ -67,7 +67,7 @@
### 使用 GitHub Actions {#using-github-actions}
1. 在你的主题配置文件 `docs/.vitepress/config.js` 中,将 `base` 属性设置为你的 GitHub 仓库的名称。 如果你打算将你的站点部署到`https://foo.github.io/bar/`那么你应该将base设置为`'/bar/'`。 它应该始终以斜线开头和结尾。
1. 在你的主题配置文件 `docs/.vitepress/config.js` 中,将 `base` 属性设置为你的 GitHub 仓库的名称。 如果你打算将你的站点部署到 `https://foo.github.io/bar/`,那么你应该将 base 设置为`'/bar/'`。 它应该始终以斜线开头和结尾。
2. 在项目的 `.github/workflows` 目录中创建一个名为 `deploy.yml` 的文件,内容如下:

@ -75,7 +75,7 @@ docs/
/* /en/:splat 302
```
**重要提示:** 如果使用上面的方法,你可以使用 `nf_lang` cookie 去存储用户的语言偏好。如下是一个非常基本的例子,在自定义主题的 [setup](./theme-introduction#using-a-custom-theme) 函数里面,你可以这样做:
**重要提示:** 如果使用上面的方法,你可以使用 `nf_lang` cookie 去存储用户的语言偏好。如下是一个非常基本的例子,在自定义主题的 [setup](./customization-intro#using-a-custom-theme) 函数里面,你可以这样做:
```ts
// docs/.vitepress/theme/index.ts

Loading…
Cancel
Save