Skip to content

Commit 2a8fd77

Browse files
committed
docs: theme
1 parent 2c4e5e4 commit 2a8fd77

File tree

3 files changed

+243
-263
lines changed

3 files changed

+243
-263
lines changed

packages/hooks/docs/.vitepress/config.ts

Lines changed: 13 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const base =
1212
: '/vue-hooks-plus/docs'
1313
: ''
1414

15-
const isGithub = process.env.FLOW === 'github'
15+
// const isGithub = process.env.FLOW === 'github'
1616

1717
// fetch('https://api.github.com/repos/InhiblabCore/vue-hooks-plus/releases/latest')
1818
// .then(response => response.json())
@@ -79,49 +79,27 @@ export default defineConfig({
7979
locales: {
8080
'/': {
8181
nav: [
82-
{ text: `⒡ Hooks`, link: '/useRequest/' },
83-
isGithub
84-
? {
85-
text: '演武场',
86-
link: 'https://inhiblabcore.github.io/vue-hooks-plus-playground/play',
87-
}
88-
: {
89-
text: '演武场',
90-
link: 'https://inhiblab-core.gitee.io/vue-hooks-plus-playground/play',
91-
},
92-
isGithub
93-
? {
94-
text: '国内镜像 🇨🇳',
95-
link: 'https://inhiblab-core.gitee.io/docs/hooks',
96-
}
97-
: null,
82+
{ text: `🥳 Hooks`, link: '/useRequest/' },
9883
{
99-
text: '发行版本',
84+
text: '🤺 Playground',
85+
link: 'https://inhiblabcore.github.io/vue-hooks-plus-playground/play',
86+
},
87+
{
88+
text: '🎀 Releases',
10089
link: 'https://github.com/InhiblabCore/vue-hooks-plus/releases',
10190
},
10291
].filter(Boolean),
10392
sidebar: getRouterConfig(),
10493
},
10594
'/en/': {
10695
nav: [
107-
{ text: '⒡ Hooks', link: '/en/useRequest/' },
108-
isGithub
109-
? {
110-
text: 'Playground',
111-
link: 'https://inhiblabcore.github.io/vue-hooks-plus-playground/play',
112-
}
113-
: {
114-
text: 'Playground',
115-
link: 'https://inhiblab-core.gitee.io/vue-hooks-plus-playground/play',
116-
},
117-
isGithub
118-
? {
119-
text: 'Gitee Mirror 🇨🇳',
120-
link: 'https://inhiblab-core.gitee.io/docs/hooks/',
121-
}
122-
: null,
96+
{ text: '🥳 Hooks', link: '/en/useRequest/' },
97+
{
98+
text: '🤺 Playground',
99+
link: 'https://inhiblabcore.github.io/vue-hooks-plus-playground/play',
100+
},
123101
{
124-
text: 'Releases',
102+
text: '🎀 Releases',
125103
link: 'https://github.com/InhiblabCore/vue-hooks-plus/releases/',
126104
},
127105
].filter(Boolean),

packages/hooks/docs/.vitepress/theme/home/Home-EN.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@
172172
padding: 8px 18px;
173173
font-weight: 500;
174174
transition: background-color 0.5s, color 0.5s;
175+
width: 12rem;
175176
176177
// -webkit-background-clip: text;
177178
// animation: move 2s infinite linear;

0 commit comments

Comments
 (0)