Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: setup theme issue #41

Merged
merged 2 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ presenterImage: 'https://res.cloudinary.com/alvarosaburido/image/upload/v1666351

# Alvaro Saburido

DevRel at <a href="https://www.storyblok.com/"><logos-storyblok-icon mr-1/>Storyblok</a>
DX at <a href="https://www.storyblok.com/"><logos-storyblok-icon mr-1/>Storyblok</a>

- Barcelona, Spain 🇪🇸
- I often write at <a href="https://dev.to/alvarosaburido"> dev.to/@alvarosabu</a>
Expand Down
7 changes: 2 additions & 5 deletions setup/shiki.ts
Original file line number Diff line number Diff line change
@@ -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,
}))
Loading