diff --git a/packages/hooks/docs/.vitepress/config.ts b/packages/hooks/docs/.vitepress/config.ts index 7806f04..cfcb903 100644 --- a/packages/hooks/docs/.vitepress/config.ts +++ b/packages/hooks/docs/.vitepress/config.ts @@ -12,7 +12,7 @@ const base = : '/vue-hooks-plus/docs' : '' -const isGithub = process.env.FLOW === 'github' +// const isGithub = process.env.FLOW === 'github' // fetch('https://api.github.com/repos/InhiblabCore/vue-hooks-plus/releases/latest') // .then(response => response.json()) @@ -79,24 +79,13 @@ export default defineConfig({ locales: { '/': { nav: [ - { text: `⒡ Hooks`, link: '/useRequest/' }, - isGithub - ? { - text: '演武场', - link: 'https://inhiblabcore.github.io/vue-hooks-plus-playground/play', - } - : { - text: '演武场', - link: 'https://inhiblab-core.gitee.io/vue-hooks-plus-playground/play', - }, - isGithub - ? { - text: '国内镜像 🇨🇳', - link: 'https://inhiblab-core.gitee.io/docs/hooks', - } - : null, + { text: `🥳 Hooks`, link: '/useRequest/' }, { - text: '发行版本', + text: '🤺 Playground', + link: 'https://inhiblabcore.github.io/vue-hooks-plus-playground/play', + }, + { + text: '🎀 Releases', link: 'https://github.com/InhiblabCore/vue-hooks-plus/releases', }, ].filter(Boolean), @@ -104,24 +93,13 @@ export default defineConfig({ }, '/en/': { nav: [ - { text: '⒡ Hooks', link: '/en/useRequest/' }, - isGithub - ? { - text: 'Playground', - link: 'https://inhiblabcore.github.io/vue-hooks-plus-playground/play', - } - : { - text: 'Playground', - link: 'https://inhiblab-core.gitee.io/vue-hooks-plus-playground/play', - }, - isGithub - ? { - text: 'Gitee Mirror 🇨🇳', - link: 'https://inhiblab-core.gitee.io/docs/hooks/', - } - : null, + { text: '🥳 Hooks', link: '/en/useRequest/' }, + { + text: '🤺 Playground', + link: 'https://inhiblabcore.github.io/vue-hooks-plus-playground/play', + }, { - text: 'Releases', + text: '🎀 Releases', link: 'https://github.com/InhiblabCore/vue-hooks-plus/releases/', }, ].filter(Boolean), diff --git a/packages/hooks/docs/.vitepress/theme/home/Home-EN.vue b/packages/hooks/docs/.vitepress/theme/home/Home-EN.vue index f847196..c264654 100644 --- a/packages/hooks/docs/.vitepress/theme/home/Home-EN.vue +++ b/packages/hooks/docs/.vitepress/theme/home/Home-EN.vue @@ -172,6 +172,7 @@ padding: 8px 18px; font-weight: 500; transition: background-color 0.5s, color 0.5s; + width: 12rem; // -webkit-background-clip: text; // animation: move 2s infinite linear; diff --git a/packages/hooks/docs/.vitepress/theme/home/Home.vue b/packages/hooks/docs/.vitepress/theme/home/Home.vue index dcb9041..52d96ce 100644 --- a/packages/hooks/docs/.vitepress/theme/home/Home.vue +++ b/packages/hooks/docs/.vitepress/theme/home/Home.vue @@ -1,12 +1,12 @@