From f729cb3b9333aa361d6a2ffab2c720f36303ba18 Mon Sep 17 00:00:00 2001 From: "Mr.Hope" Date: Thu, 25 Jul 2024 13:29:43 +0800 Subject: [PATCH] docs: fix shiki config --- docs/.vuepress/config.ts | 1 + docs/.vuepress/theme.ts | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 2e32e39eff..d057cd70b7 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -116,6 +116,7 @@ export default defineUserConfig({ notationFocus: true, notationHighlight: true, notationWordHighlight: true, + whitespace: true, }) : [], cachePlugin(), diff --git a/docs/.vuepress/theme.ts b/docs/.vuepress/theme.ts index 066f539e29..7c1aea0032 100644 --- a/docs/.vuepress/theme.ts +++ b/docs/.vuepress/theme.ts @@ -68,6 +68,10 @@ export default defaultTheme({ prismjs: isProd ? false : { + themes: { + light: 'one-light', + dark: 'one-dark', + }, lineNumbers: 10, notationDiff: true, notationErrorLevel: true, @@ -75,10 +79,6 @@ export default defaultTheme({ notationHighlight: true, notationWordHighlight: true, whitespace: true, - themes: { - light: 'one-light', - dark: 'one-dark', - }, }, }, }) as Theme