From 0b3213393097bbf08e1fea308b67fbf643266fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A7=BF=E6=B3=BD?= <1791209985@qq.com> Date: Sun, 12 May 2024 18:24:49 +0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Xavi Lee --- docs/zh/guide/deploy.md | 4 ++-- docs/zh/guide/sitemap-generation.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/zh/guide/deploy.md b/docs/zh/guide/deploy.md index 6cd93240..1aec31f2 100644 --- a/docs/zh/guide/deploy.md +++ b/docs/zh/guide/deploy.md @@ -294,7 +294,7 @@ Cache-Control: max-age=31536000,immutable ### Nginx -下面是一个 Nginx 服务器块配置示例。此设置包括对基于文本的常见资源的 gzip 压缩、使用适当缓存头为 VitePress 网站静态文件提供服务的规则以及处理 `cleanUrls: true` 的方法。 +下面是一个 Nginx 服务器块配置示例。此配置包括对基于文本的常见资源的 gzip 压缩、使用适当缓存头为 VitePress 网站静态文件提供服务的规则以及处理 `cleanUrls: true` 的方法。 ```nginx server { @@ -328,4 +328,4 @@ server { try_files 解析不能像其他 Vue 应用那样默认为 index.html。这会导致页面状态处于无效。 ::: -更多信息请参见 [nginx 官方文档](https://nginx.org/en/docs/)、这些问题 [#2837](https://github.com/vuejs/vitepress/discussions/2837)、[#3235](https://github.com/vuejs/vitepress/issues/3235)以及 Mehdi Merah 发表的 [博文](https://blog.mehdi.cc/articles/vitepress-cleanurls-on-nginx-environment#readings)。 \ No newline at end of file +更多信息请参见 [nginx 官方文档](https://nginx.org/en/docs/)、这些 GitHub Issue [#2837](https://github.com/vuejs/vitepress/discussions/2837)、[#3235](https://github.com/vuejs/vitepress/issues/3235)以及 Mehdi Merah 发表的[博客](https://blog.mehdi.cc/articles/vitepress-cleanurls-on-nginx-environment#readings)。 \ No newline at end of file diff --git a/docs/zh/guide/sitemap-generation.md b/docs/zh/guide/sitemap-generation.md index fd7f45e3..1e572367 100644 --- a/docs/zh/guide/sitemap-generation.md +++ b/docs/zh/guide/sitemap-generation.md @@ -47,7 +47,7 @@ export default { sitemap: { hostname: 'https://example.com', transformItems: (items) => { - // 添加新项目或修改/过滤现有项目 + // 添加新项目或修改/筛选现有项目 items.push({ url: '/extra-page', changefreq: 'monthly',