Skip to content

Commit

Permalink
fix: 修复 GitHub 编辑链接 (#18)
Browse files Browse the repository at this point in the history
* fix: 修复 GitHub 编辑链接

* fix(config): 修复 sitePattern 的路径错误
  • Loading branch information
Leetfs authored Sep 26, 2024
1 parent 2ab70c8 commit 579913c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ const themeConfig: ThemeContext = {
sidebarOptions,
enableChangeLog: false,
enableSuggestionBox: false,
/** 文档所在目录(用于GitHub编辑链接) */
sitePattern: `docs`,
}

// https://vitepress.dev/reference/site-config
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@iconify-json/icon-park-outline": "^1.2.0",
"@iconify-json/octicon": "^1.2.0",
"@project-trans/suggestion-box": "^0.0.9",
"@project-trans/vitepress-theme-project-trans": "^0.4.0",
"@project-trans/vitepress-theme-project-trans": "^0.4.1727360260",
"@unocss/eslint-plugin": "^0.59.4",
"eslint": "^8.57.1",
"eslint-plugin-format": "^0.1.2",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 579913c

Please sign in to comment.