Skip to content

Commit

Permalink
docs: theme
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonYong committed Jul 13, 2024
1 parent 2c4e5e4 commit 2a8fd77
Show file tree
Hide file tree
Showing 3 changed files with 243 additions and 263 deletions.
48 changes: 13 additions & 35 deletions packages/hooks/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -79,49 +79,27 @@ 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),
sidebar: getRouterConfig(),
},
'/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),
Expand Down
1 change: 1 addition & 0 deletions packages/hooks/docs/.vitepress/theme/home/Home-EN.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading

0 comments on commit 2a8fd77

Please sign in to comment.