浏览代码

chore(docs): correct the file path in the markdown for the GitHub website (#4254)

前端爱码士 8 月之前
父节点
当前提交
453a3a8f84
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 1
      docs/.vitepress/config/en.mts
  2. 2 1
      docs/.vitepress/config/zh.mts

+ 1 - 1
docs/.vitepress/config/en.mts

@@ -13,7 +13,7 @@ export const en = defineConfig({
       prev: 'Previous Page',
       prev: 'Previous Page',
     },
     },
     editLink: {
     editLink: {
-      pattern: 'https://github.com/vuejs/vitepress/edit/main/docs/:path',
+      pattern: 'https://github.com/vuejs/vitepress/edit/main/docs/src/:path',
       text: 'Edit this page on GitHub',
       text: 'Edit this page on GitHub',
     },
     },
     footer: {
     footer: {

+ 2 - 1
docs/.vitepress/config/zh.mts

@@ -13,7 +13,8 @@ export const zh = defineConfig({
       prev: '上一页',
       prev: '上一页',
     },
     },
     editLink: {
     editLink: {
-      pattern: 'https://github.com/vbenjs/vue-vben-admin/edit/main/docs/:path',
+      pattern:
+        'https://github.com/vbenjs/vue-vben-admin/edit/main/docs/src/:path',
       text: '在 GitHub 上编辑此页面',
       text: '在 GitHub 上编辑此页面',
     },
     },
     footer: {
     footer: {