From f1027447d0566f4d0321918fdab7da896943ee20 Mon Sep 17 00:00:00 2001 From: LeeGuanLi Date: Sat, 7 Sep 2024 17:59:01 +0800 Subject: [PATCH] Update Vitepress config to remove unused rewrites and search functionality for multiple languages --- .github/workflows/cf.yml | 1 - docs/.vitepress/config/shared.ts | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/cf.yml b/.github/workflows/cf.yml index 25c9dda..aa4ec28 100644 --- a/.github/workflows/cf.yml +++ b/.github/workflows/cf.yml @@ -43,4 +43,3 @@ jobs: accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} # 在 GitHub Secrets 中配置你的 Cloudflare Account ID projectName: study-wiki # Cloudflare Pages 项目名称 directory: docs/.vitepress/dist # 替换为 VitePress 构建输出的目录 - args: --commit-dirty=true # 允许提交未提交的更改 \ No newline at end of file diff --git a/docs/.vitepress/config/shared.ts b/docs/.vitepress/config/shared.ts index 52231e6..921d175 100644 --- a/docs/.vitepress/config/shared.ts +++ b/docs/.vitepress/config/shared.ts @@ -5,9 +5,7 @@ import { search as zhSearch } from './zh' export const shared = defineConfig({ title: 'VitePress', - rewrites: { - 'en/:rest*': ':rest*' - }, + lastUpdated: true, cleanUrls: true, @@ -61,10 +59,6 @@ export const shared = defineConfig({ indexName: 'vitepress', locales: { ...zhSearch, - ...ptSearch, - ...ruSearch, - ...esSearch, - ...koSearch } } },