From 8517d652d8069d8fda9af655743ebc164a806b7a Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Thu, 29 Aug 2024 15:13:36 +0200 Subject: [PATCH] fix: shiki setup theme issue --- example.md | 2 +- setup/shiki.ts | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/example.md b/example.md index e197acc..d0c07ad 100644 --- a/example.md +++ b/example.md @@ -35,7 +35,7 @@ presenterImage: 'https://res.cloudinary.com/alvarosaburido/image/upload/v1666351 # Alvaro Saburido -DevRel at Storyblok +DX at Storyblok - Barcelona, Spain 🇪🇸 - I often write at dev.to/@alvarosabu diff --git a/setup/shiki.ts b/setup/shiki.ts index 069eccd..524c927 100644 --- a/setup/shiki.ts +++ b/setup/shiki.ts @@ -1,10 +1,7 @@ /* ./setup/shiki.ts */ -import fs from 'node:fs' - import { defineShikiSetup } from '@slidev/types' - -const myTheme = JSON.parse(fs.readFileSync('setup/theme/penguin-theme.json', 'utf8')) +import PenguinTheme from './theme/penguin-theme.json' export default defineShikiSetup(() => ({ - theme: myTheme, + theme: PenguinTheme, }))