diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7999544..e0c79e9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -51,7 +51,6 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} needs: build runs-on: ubuntu-latest - name: Deploy steps: - name: Deploy to GitHub Pages id: deployment diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 6479b20..47d3c58 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -1,28 +1,66 @@ -import { defineConfig } from 'vitepress' +import {defineConfig} from 'vitepress' // https://vitepress.dev/reference/site-config export default defineConfig({ - title: "耗子面板", - description: "耗子面板官网", - themeConfig: { - // https://vitepress.dev/reference/default-theme-config - nav: [ - { text: 'Home', link: '/' }, - { text: 'Examples', link: '/markdown-examples' } - ], - - sidebar: [ - { - text: 'Examples', - items: [ - { text: 'Markdown Examples', link: '/markdown-examples' }, - { text: 'Runtime API Examples', link: '/api-examples' } - ] - } - ], - - socialLinks: [ - { icon: 'github', link: 'https://github.com/vuejs/vitepress' } - ] - } + title: "耗子面板", + description: "简单轻量,高效运维", + lang: "zh", + lastUpdated: true, + locales: { + root: { + label: '简体中文', + lang: 'zh-Hans', + }, + en: { + label: 'English', + lang: 'en', + title: 'Rat Panel', + }, + }, + themeConfig: { + // https://vitepress.dev/reference/default-theme-config + nav: [ + {text: '首页', link: '/'}, + {text: 'Examples', link: '/markdown-examples'} + ], + sidebar: [ + { + text: 'Examples', + items: [ + {text: 'Markdown Examples', link: '/markdown-examples'}, + {text: 'Runtime API Examples', link: '/api-examples'} + ] + } + ], + socialLinks: [ + {icon: 'github', link: 'https://github.com/vuejs/vitepress'} + ], + search: { + provider: 'local', + options: { + locales: { + root: { + translations: { + button: { + buttonText: '搜索文档', + buttonAriaLabel: '搜索文档' + }, + modal: { + noResultsText: '无法找到相关结果', + resetButtonTitle: '清除查询条件', + footer: { + selectText: '选择', + navigateText: '切换' + } + } + } + } + } + } + }, + footer: { + message: '耗子面板', + copyright: '耗子面板 © 2022-2024 版权所有' + } + } }) diff --git a/index.md b/index.md index 4425a07..d4bd50e 100644 --- a/index.md +++ b/index.md @@ -4,7 +4,7 @@ layout: home hero: name: "耗子面板" - text: "耗子面板官网" + text: "简单轻量,高效运维" tagline: My great project tagline actions: - theme: brand