From 6a8ef647991509f3ebe7f233ff02edba0d31620f Mon Sep 17 00:00:00 2001 From: ZiuChen <457353192@qq.com> Date: Tue, 10 Jan 2023 16:32:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BC=95=E5=85=A5Vue=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=20=E8=A7=A3=E5=86=B3=E9=A1=B5=E5=86=85=E8=B7=B3=E8=BD=AC404?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/components/Link.vue | 37 ++++++++++++++++++++++++++ docs/.vitepress/components/Title.vue | 31 +++++++++++++++++++++ docs/.vitepress/theme/index.ts | 11 ++++++++ docs/.vitepress/type.d.ts | 12 +++++++++ docs/project/ClipboardManager/index.md | 18 ++++++++++--- docs/project/SmartWordBreak/index.md | 16 ++++++++--- 6 files changed, 117 insertions(+), 8 deletions(-) create mode 100644 docs/.vitepress/components/Link.vue create mode 100644 docs/.vitepress/components/Title.vue create mode 100644 docs/.vitepress/theme/index.ts create mode 100644 docs/.vitepress/type.d.ts diff --git a/docs/.vitepress/components/Link.vue b/docs/.vitepress/components/Link.vue new file mode 100644 index 00000000..5a465182 --- /dev/null +++ b/docs/.vitepress/components/Link.vue @@ -0,0 +1,37 @@ + + + + + diff --git a/docs/.vitepress/components/Title.vue b/docs/.vitepress/components/Title.vue new file mode 100644 index 00000000..ae4045b9 --- /dev/null +++ b/docs/.vitepress/components/Title.vue @@ -0,0 +1,31 @@ + + + + + diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts new file mode 100644 index 00000000..08147407 --- /dev/null +++ b/docs/.vitepress/theme/index.ts @@ -0,0 +1,11 @@ +import DefaultTheme from 'vitepress/theme' +import Title from '../components/Title.vue' + +export default { + ...DefaultTheme, + enhanceApp(ctx) { + DefaultTheme.enhanceApp(ctx) + const { app } = ctx + app.component('Title', Title) + } +} diff --git a/docs/.vitepress/type.d.ts b/docs/.vitepress/type.d.ts new file mode 100644 index 00000000..00129f77 --- /dev/null +++ b/docs/.vitepress/type.d.ts @@ -0,0 +1,12 @@ +declare module '*.vue' { + import { ComponentOptions } from 'vue' + const componentOptions: ComponentOptions + export default componentOptions +} + +interface LinkItem { + content: string + target: string +} + +type LinkList = LinkItem[] diff --git a/docs/project/ClipboardManager/index.md b/docs/project/ClipboardManager/index.md index 51869db5..03410bcc 100644 --- a/docs/project/ClipboardManager/index.md +++ b/docs/project/ClipboardManager/index.md @@ -3,11 +3,21 @@ title: 超级剪贴板 navbar: false --- -logo + -

✨ 强大的剪贴板管理工具。

- -[⭐ 开源代码](https://github.com/ZiuChen/ClipboardManager) [🌎 疑难解答](./statement/) [🚀 进阶功能](./guide/) [🚚 更新日志](./log/) [🎈 插件发布页](https://yuanliao.info/d/5722/29) + ## 🔰 开始使用 diff --git a/docs/project/SmartWordBreak/index.md b/docs/project/SmartWordBreak/index.md index e48bc52d..58ffdf41 100644 --- a/docs/project/SmartWordBreak/index.md +++ b/docs/project/SmartWordBreak/index.md @@ -3,11 +3,19 @@ title: 超级分词 navbar: false --- -<img src="./assets/logo.png" alt="logo" style="margin: 0 auto" /> +<script setup> + const titleInfo = { + subTitle: '✨ 智慧分词,快速提取文本关键词。', + logo: './assets/logo.png', + linkList: [ + { content: '⭐ 插件发布页', target: 'https://yuanliao.info/d/5722/29' }, + { content: '🌎 Q&A', target: './statement/' }, + { content: '🚚 更新日志', target: './log/' }, + ] + } +</script> -<p style="text-align: center">✨ 智慧分词,快速提取文本关键词。</p> - -[⭐ 插件发布页](https://yuanliao.info/d/5722/29) [🌎 Q&A](./statement/) [🚚 更新日志](./log/) +<Title v-bind="titleInfo" /> ## 🔰 开始使用