Skip to content

Commit 3edae16

Browse files
committed
feat: add astro-expressive-code to enhance code snippets
enhancements: code-copy button, and more
1 parent 5cfa77b commit 3edae16

3 files changed

Lines changed: 284 additions & 58 deletions

File tree

astro.config.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import tailwindcss from '@tailwindcss/vite';
55

66
import react from '@astrojs/react';
77

8+
import expressiveCode from 'astro-expressive-code';
9+
810
// https://astro.build/config
911
export default defineConfig({
1012
site: 'https://zhongyangxun.github.io',
@@ -15,5 +17,10 @@ export default defineConfig({
1517
plugins: [tailwindcss()],
1618
},
1719

18-
integrations: [react()],
20+
integrations: [
21+
react(),
22+
expressiveCode({
23+
themes: ['catppuccin-macchiato'],
24+
}),
25+
],
1926
});

0 commit comments

Comments
 (0)