Skip to content

Commit

Permalink
fix:url
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Mar 1, 2024
1 parent 2fb4ea3 commit 83f4642
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ export default defineConfig({
'/zh-CN/': {
label: "简体中文",
lang: "zh-CN",
link: '/zh-CN/'
link: $withBase('/zh-CN/')
},
'/en-US/': {
label: 'English',
lang: 'en-us',
link: '/en-US/'
link: $withBase('/en-US/')
}
},
themeConfig: {
Expand Down
2 changes: 1 addition & 1 deletion docs/en-US/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ hero:
actions:
- theme: brand
text: Start
link: /en-US/guide/getting-started
link: $withBase('/en-US/guide/getting-started')
- theme: alt
text: Github
link: https://github.com/LLOneBot/LLOneBot
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ page: true

if (typeof window !== 'undefined') {
const preferredLang = 'zh-CN'
window.location.pathname = `/${preferredLang}/`
window.location.pathname = $withBase(`/${preferredLang}/`)
}

</script>
2 changes: 1 addition & 1 deletion docs/zh-CN/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ hero:
actions:
- theme: brand
text: 快速开始
link: /zh-CN/guide/getting-started
link: $withBase('/zh-CN/guide/getting-started')
- theme: alt
text: Github
link: https://github.com/LLOneBot/LLOneBot
Expand Down

0 comments on commit 83f4642

Please sign in to comment.