-
Notifications
You must be signed in to change notification settings - Fork 163
Expand file tree
/
Copy pathec.config.mjs
More file actions
29 lines (27 loc) · 827 Bytes
/
ec.config.mjs
File metadata and controls
29 lines (27 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { pluginCollapsible } from "expressive-code-collapsible"
/** @type {import('astro-expressive-code').AstroExpressiveCodeOptions} */
export default {
themes: ["github-dark-default", "github-light-default"],
plugins: [
pluginCollapsible({
lineThreshold: 25,
previewLines: 20,
expandButtonText: "See all lines",
collapseButtonText: "Collapse",
}),
],
themeCssSelector: (theme) => {
if (theme.type === "dark") return ".dark"
if (theme.type === "light") return ".light"
return false
},
defaultProps: {
wrap: true,
overridesByLang: {
"bash,sh,zsh,shell,twig,powershell,yaml,python": {
frame: "none",
},
},
},
useDarkModeMediaQuery: false,
}