Skip to content

Commit db6e7c2

Browse files
committed
update
1 parent 59aefb4 commit db6e7c2

File tree

4 files changed

+6
-119
lines changed

4 files changed

+6
-119
lines changed

.vitepress/en.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const en = defineConfig({
5555
component: 'HeaderButtonEN',
5656
},
5757
{
58-
component: 'HeaderGithubButtonEN',
58+
component: 'HeaderGithubButton',
5959
}
6060
// { text: 'Website', link: 'https://swanlab.cn' },
6161
],
@@ -90,10 +90,10 @@ export const en = defineConfig({
9090
},
9191

9292
// 页脚配置
93-
// socialLinks: [
94-
// { icon: 'bilibili', link: 'https://space.bilibili.com/386591517' },
95-
// { icon: 'github', link: 'https://github.com/swanhubx/swanlab' }
96-
// ],
93+
socialLinks: [
94+
{ icon: 'bilibili', link: 'https://space.bilibili.com/386591517' },
95+
{ icon: 'wechat', link: '/en/guide_cloud/community/online-support.html' },
96+
],
9797

9898
// 搜索配置
9999
search: {

.vitepress/theme/components/HeaderGithubButtonEN.vue

Lines changed: 0 additions & 111 deletions
This file was deleted.

.vitepress/theme/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@ import './custom.css'
44
import HeaderButton from './components/HeaderButton.vue'
55
import HeaderButtonEN from './components/HeaderButtonEN.vue'
66
import HeaderGithubButton from './components/HeaderGithubButton.vue'
7-
import HeaderGithubButtonEN from './components/HeaderGithubButtonEN.vue'
87

98
export default {
109
...DefaultTheme,
1110
enhanceApp({ app }) {
1211
app.component('HeaderButton', HeaderButton)
1312
app.component('HeaderButtonEN', HeaderButtonEN)
1413
app.component('HeaderGithubButton', HeaderGithubButton)
15-
app.component('HeaderGithubButtonEN', HeaderGithubButtonEN)
1614
}
1715
}

.vitepress/zh.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ export const zh = defineConfig({
110110

111111
// 页脚配置
112112
socialLinks: [
113-
{ icon: 'wechat', link: '/guide_cloud/community/online-support.html' },
114113
{ icon: 'bilibili', link: 'https://space.bilibili.com/386591517' },
114+
{ icon: 'wechat', link: '/guide_cloud/community/online-support.html' },
115115
// { icon: 'github', link: 'https://github.com/swanhubx/swanlab' },
116116
],
117117
}

0 commit comments

Comments
 (0)