Skip to content

Commit

Permalink
Update Vitepress config to remove unused rewrites and search function…
Browse files Browse the repository at this point in the history
…ality for multiple languages
  • Loading branch information
Leetfs committed Sep 7, 2024
1 parent ab64985 commit f102744
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/cf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 # 允许提交未提交的更改
8 changes: 1 addition & 7 deletions docs/.vitepress/config/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import { search as zhSearch } from './zh'
export const shared = defineConfig({
title: 'VitePress',

rewrites: {
'en/:rest*': ':rest*'
},


lastUpdated: true,
cleanUrls: true,
Expand Down Expand Up @@ -61,10 +59,6 @@ export const shared = defineConfig({
indexName: 'vitepress',
locales: {
...zhSearch,
...ptSearch,
...ruSearch,
...esSearch,
...koSearch
}
}
},
Expand Down

0 comments on commit f102744

Please sign in to comment.