Skip to content

Commit

Permalink
chore:build
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Mar 1, 2024
1 parent 83f4642 commit 1d7582e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package-lock.json
node_module/*
node_modules/*
docs/.vitepress/cache/*
docs/.vitepress/dist/*
.vscode/*
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: $withBase('/zh-CN/')
link: '/zh-CN/'
},
'/en-US/': {
label: 'English',
lang: 'en-us',
link: $withBase('/en-US/')
link: '/en-US/'
}
},
themeConfig: {
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 = $withBase(`/${preferredLang}/`)
window.location.pathname =`/LLOneBotDoc/${preferredLang}/`
}

</script>
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "llonebotdoc",
"version": "1.0.0",
"type": "module",
"scripts": {
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
Expand Down

0 comments on commit 1d7582e

Please sign in to comment.