@@ -6,6 +6,7 @@ import react from '@astrojs/react';
66import sitemap from '@astrojs/sitemap' ;
77import tailwindcss from '@tailwindcss/vite' ;
88import { defineConfig , fontProviders } from 'astro/config' ;
9+ import expressiveCode from 'astro-expressive-code' ;
910import { FileSystemIconLoader } from 'unplugin-icons/loaders' ;
1011import Icons from 'unplugin-icons/vite' ;
1112import { siteConfig } from './src/lib/config.ts' ;
@@ -26,13 +27,19 @@ export default defineConfig({
2627 } ,
2728 {
2829 provider : fontProviders . bunny ( ) ,
29- name : 'IBM Plex Serif ' ,
30- weights : [ 300 , 400 , 500 , 600 , 700 ] ,
31- cssVariable : '--font-ibm-plex-serif ' ,
30+ name : 'IBM Plex Mono ' ,
31+ weights : [ 400 ] ,
32+ cssVariable : '--font-ibm-plex-mono ' ,
3233 } ,
3334 ] ,
3435 } ,
35-
36+ // markdown: {
37+ // shikiConfig: {
38+ // // Choose from Shiki's built-in themes (or add your own)
39+ // // https://shiki.style/themes
40+ // theme: 'catppuccin-frappe',
41+ // },
42+ // },
3643 vite : {
3744 // TODO #1 - remove expect error when Astro updates to Vite 7
3845 // https://github.com/withastro/astro/issues/14030#issuecomment-3027129338
@@ -50,6 +57,22 @@ export default defineConfig({
5057 ] ,
5158 } ,
5259
53- integrations : [ react ( ) , sitemap ( ) , mdx ( ) ] ,
60+ integrations : [
61+ react ( ) ,
62+ sitemap ( ) ,
63+ // TODO: #1 make sure our mono font works with expressiveCode
64+ expressiveCode ( {
65+ themes : [ 'catppuccin-frappe' ] ,
66+ defaultProps : {
67+ // Enable word wrap by default
68+ wrap : true ,
69+ // Disable wrapped line indentation for terminal languages
70+ overridesByLang : {
71+ 'bash,ps,sh' : { preserveIndent : false } ,
72+ } ,
73+ } ,
74+ } ) ,
75+ mdx ( ) ,
76+ ] ,
5477 adapter : netlify ( ) ,
5578} ) ;
0 commit comments