File tree Expand file tree Collapse file tree 5 files changed +22
-11
lines changed
Expand file tree Collapse file tree 5 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import tailwindcss from '@tailwindcss/vite';
66import mdx from '@astrojs/mdx' ;
77import rehypeCodeGroup from 'rehype-code-group' ;
88import expressiveCode from 'astro-expressive-code' ;
9+ import { pluginFullscreen } from 'expressive-code-fullscreen' ;
10+ import { pluginCollapsibleSections } from '@expressive-code/plugin-collapsible-sections' ;
911
1012// https://astro.build/config
1113export default defineConfig ( {
@@ -642,7 +644,9 @@ export default defineConfig({
642644 Sidebar : './src/components/CustomSidebar.astro' ,
643645 } ,
644646 } ) ,
645- expressiveCode ( ) ,
647+ expressiveCode ( {
648+ plugins : [ pluginFullscreen ( ) , pluginCollapsibleSections ( ) ] ,
649+ } ) ,
646650 mdx ( ) ,
647651 ] ,
648652 markdown : {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1717 "@tailwindcss/vite" : " ^4.1.11" ,
1818 "astro" : " ^5.6.1" ,
1919 "astro-expressive-code" : " ^0.41.3" ,
20+ "expressive-code-fullscreen" : " ^1.0.0" ,
2021 "rehype-code-group" : " ^0.2.4" ,
2122 "sharp" : " ^0.34.2" ,
2223 "starlight-package-managers" : " ^0.11.0" ,
Original file line number Diff line number Diff line change @@ -31,4 +31,8 @@ img.icon {
3131
3232.rcg-tab {
3333 margin : 0 ;
34- }
34+ }
35+
36+ .expressive-code button .cb-fullscreen__button {
37+ color : var (--ec-frm-inlBtnFg );
38+ }
Original file line number Diff line number Diff line change @@ -11360,6 +11360,16 @@ __metadata:
1136011360 languageName: node
1136111361 linkType: hard
1136211362
11363+ "expressive-code-fullscreen@npm:^1.0.0":
11364+ version: 1.0.0
11365+ resolution: "expressive-code-fullscreen@npm:1.0.0"
11366+ peerDependencies:
11367+ "@astrojs/starlight": ">=0.34"
11368+ "@expressive-code/core": ^0.41.3
11369+ checksum: ca3f2d318296978296fefd6c704791c930718142e416416b86e13e207cf94a0030f4eb0a8d92ea563de89eb7838375eac5f19354c10a298e7db64f80831d592c
11370+ languageName: node
11371+ linkType: hard
11372+
1136311373"expressive-code@npm:^0.41.3":
1136411374 version: 0.41.3
1136511375 resolution: "expressive-code@npm:0.41.3"
@@ -19172,6 +19182,7 @@ __metadata:
1917219182 "@tailwindcss/vite": "npm:^4.1.11"
1917319183 astro: "npm:^5.6.1"
1917419184 astro-expressive-code: "npm:^0.41.3"
19185+ expressive-code-fullscreen: "npm:^1.0.0"
1917519186 prettier: "npm:^3.2.5"
1917619187 prettier-plugin-astro: "npm:^0.14.1"
1917719188 rehype-code-group: "npm:^0.2.4"
You can’t perform that action at this time.
0 commit comments