File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import { defineConfig } from 'astro/config';
33import starlight from '@astrojs/starlight' ;
44import catppuccin from '@catppuccin/starlight' ;
55import starlightBlog from 'starlight-blog' ;
6- import { pluginLineNumbers } from '@expressive-code/plugin-line-numbers' ;
76import starlightFullViewMode from 'starlight-fullview-mode'
87
98// https://astro.build/config
@@ -42,19 +41,6 @@ export default defineConfig({
4241 href : 'https://github.com/EdwardAngert' ,
4342 } ,
4443 ] ,
45- expressiveCode : {
46- plugins : [ pluginLineNumbers ( ) ] ,
47- defaultProps : {
48- // Disable line numbers by default
49- showLineNumbers : false ,
50- // But enable line numbers for certain languages
51- overridesByLang : {
52- 'text,toml,yaml' : {
53- showLineNumbers : true ,
54- } ,
55- } ,
56- } ,
57- } ,
5844 plugins : [
5945 catppuccin ( {
6046 dark : { flavor : "mocha" , accent : "mauve" } ,
Original file line number Diff line number Diff line change 1+ import { pluginLineNumbers } from '@expressive-code/plugin-line-numbers' ;
2+
3+ /** @type {import('astro-expressive-code').AstroExpressiveCodeOptions } */
4+ export default {
5+ plugins : [ pluginLineNumbers ( ) ] ,
6+ defaultProps : {
7+ // Disable line numbers by default
8+ showLineNumbers : false ,
9+ overridesByLang : {
10+ // Enable line numbers for certain languages
11+ 'text,toml,yaml' : {
12+ showLineNumbers : true ,
13+ } ,
14+ // Wrap long lines for shell and text
15+ 'shell,url' : {
16+ wrap : true ,
17+ } ,
18+ } ,
19+ } ,
20+ } ;
You can’t perform that action at this time.
0 commit comments