From ee8cfef365f82d4733c84005e207507b0f2ad205 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Tue, 16 Aug 2022 10:01:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=AD=97=E4=BD=93=E8=A2=ABnormalize.css=E6=B1=A1=E6=9F=93?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config/markdown.ts | 6 +++++- docs/.vitepress/theme/styles/custom.css | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/config/markdown.ts b/docs/.vitepress/config/markdown.ts index 6e42ae941..f14a89164 100644 --- a/docs/.vitepress/config/markdown.ts +++ b/docs/.vitepress/config/markdown.ts @@ -1,7 +1,11 @@ import type { MarkdownOptions } from 'vitepress' export const markdown: MarkdownOptions = { - theme: 'one-dark-pro', // Shiki主题, 所有主题参见: https://github.com/shikijs/shiki/blob/main/docs/themes.md + // Shiki主题, 所有主题参见: https://github.com/shikijs/shiki/blob/main/docs/themes.md + theme: { + light: 'material-palenight', + dark: 'one-dark-pro' + }, lineNumbers: true, // 启用行号 // 在所有文档的

标签后添加组件 diff --git a/docs/.vitepress/theme/styles/custom.css b/docs/.vitepress/theme/styles/custom.css index c75fd1442..613da9214 100644 --- a/docs/.vitepress/theme/styles/custom.css +++ b/docs/.vitepress/theme/styles/custom.css @@ -2,6 +2,10 @@ body { font-size: 16px; } +pre, code, kbd, samp { + font-family: var(--vp-font-family-mono); +} + .vp-doc h2 { margin: 15px 0 16px; padding-top: 10px;