docs: update chinese links too

pull/4052/head
Divyansh Singh 1 year ago
parent ad96310448
commit 7766bb696e

@ -160,7 +160,7 @@ export default createContentLoader('posts/*.md', {
查看它在 [Vue.js 博客](https://github.com/vuejs/blog/blob/main/.vitepress/theme/posts.data.ts)中是如何使用的。 查看它在 [Vue.js 博客](https://github.com/vuejs/blog/blob/main/.vitepress/theme/posts.data.ts)中是如何使用的。
`createContentLoader` API 也可以在[构建钩子](/reference/site-config#build-hooks)中使用: `createContentLoader` API 也可以在[构建钩子](../reference/site-config#build-hooks)中使用:
```js ```js
// .vitepress/config.js // .vitepress/config.js

@ -73,7 +73,7 @@ Cache-Control: max-age=31536000,immutable
cache-control: immutable cache-control: immutable
``` ```
注意:该 `_headers` 文件应放置在 [public 目录](/guide/asset-handling#the-public-directory)中 (在我们的例子中是 `docs/public/_headers`),以便将其逐字复制到输出目录。 注意:该 `_headers` 文件应放置在 [public 目录](./asset-handling#the-public-directory)中 (在我们的例子中是 `docs/public/_headers`),以便将其逐字复制到输出目录。
[Netlify 自定义标头文档](https://docs.netlify.com/routing/headers/) [Netlify 自定义标头文档](https://docs.netlify.com/routing/headers/)

@ -63,10 +63,10 @@ export default DefaultTheme
``` ```
::: warning ::: warning
如果你在使用像是[团队页](/reference/default-theme-team-page)这样的组件,请确保也从 `vitepress/theme-without-fonts` 中导入它们! 如果你在使用像是[团队页](../reference/default-theme-team-page)这样的组件,请确保也从 `vitepress/theme-without-fonts` 中导入它们!
::: :::
如果字体是通过 `@font-face` 引用的本地文件,它将会被作为资源被包含在 `.vitepress/dist/asset` 目录下,并且使用哈希后的文件名。为了预加载这个文件,请使用 [transformHead](/reference/site-config#transformhead) 构建钩子: 如果字体是通过 `@font-face` 引用的本地文件,它将会被作为资源被包含在 `.vitepress/dist/asset` 目录下,并且使用哈希后的文件名。为了预加载这个文件,请使用 [transformHead](../reference/site-config#transformhead) 构建钩子:
```js ```js
// .vitepress/config.js // .vitepress/config.js

@ -48,7 +48,7 @@ if (!import.meta.env.SSR) {
} }
``` ```
因为 [`Theme.enhanceApp`](/guide/custom-theme#theme-interface) 可以是异步的,所以可以有条件地导入并注册访问浏览器 API 的 Vue 插件: 因为 [`Theme.enhanceApp`](./custom-theme#theme-interface) 可以是异步的,所以可以有条件地导入并注册访问浏览器 API 的 Vue 插件:
```js ```js
// .vitepress/theme/index.js // .vitepress/theme/index.js

Loading…
Cancel
Save