From c90908ab051edb395320021e896d5573ce5d6668 Mon Sep 17 00:00:00 2001 From: haoziqaq <357229046@qq.com> Date: Mon, 28 Oct 2024 12:31:54 +0800 Subject: [PATCH] feat: support vitesse theme for markdown --- docs/.vitepress/config.ts | 6 ++++++ docs/index.md | 4 ++++ docs/zh/index.md | 3 +++ 3 files changed, 13 insertions(+) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 5bc074c..845a0a3 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -31,6 +31,12 @@ export default defineConfig({ }, }, }, + markdown: { + theme: { + light: 'vitesse-light', + dark: 'vitesse-dark', + }, + }, themeConfig: { logo: { src: '/logo.svg', style: { height: '28px' } }, nav: [{ text: 'Home', link: '/' }], diff --git a/docs/index.md b/docs/index.md index c5d2b24..b87cc1b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -12,6 +12,10 @@ hero: - theme: brand text: Get Started link: /getting-started + - theme: alt + text: View On Github + link: https://github.com/varletjs/rattail + features: - title: General diff --git a/docs/zh/index.md b/docs/zh/index.md index 10378a1..a60ddb3 100644 --- a/docs/zh/index.md +++ b/docs/zh/index.md @@ -9,6 +9,9 @@ hero: - theme: brand text: 快速开始 link: /zh/getting-started + - theme: alt + text: 查看源码 + link: https://github.com/varletjs/rattail features: - title: 通用