Skip to content

Commit 94d7dda

Browse files
committed
fix EC config
1 parent 92a3728 commit 94d7dda

File tree

4 files changed

+16
-87
lines changed

4 files changed

+16
-87
lines changed

ec.config.mjs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
import darkTheme from "solarflare-theme/themes/cloudflare-dark-color-theme.json" with { type: "json" };
33
import lightTheme from "solarflare-theme/themes/cloudflare-light-color-theme.json" with { type: "json" };
44

5-
import pluginDefaultTitles from "./plugins/expressive-code/default-titles";
6-
import pluginOutputFrame from "./plugins/expressive-code/output-frame";
7-
import pluginWorkersPlayground from "./plugins/expressive-code/workers-playground";
5+
import pluginWorkersPlayground from "./plugins/expressive-code/workers-playground.js";
6+
import pluginOutputFrame from "./plugins/expressive-code/output-frame.js";
7+
import pluginDefaultTitles from "./plugins/expressive-code/default-titles.js";
8+
89
import { pluginCollapsibleSections } from "@expressive-code/plugin-collapsible-sections";
910

1011
export default {
1112
plugins: [
12-
pluginDefaultTitles(),
13-
pluginOutputFrame(),
1413
pluginWorkersPlayground(),
14+
pluginOutputFrame(),
15+
pluginDefaultTitles(),
1516
pluginCollapsibleSections(),
1617
],
1718
themes: [darkTheme, lightTheme],

package-lock.json

Lines changed: 8 additions & 80 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@cloudflare/vitest-pool-workers": "0.6.0",
3939
"@cloudflare/workers-types": "4.20250109.0",
4040
"@codingheads/sticky-header": "1.0.2",
41-
"@expressive-code/plugin-collapsible-sections": "0.40.0",
41+
"@expressive-code/plugin-collapsible-sections": "0.38.3",
4242
"@iarna/toml": "2.2.5",
4343
"@iconify-json/material-symbols": "1.2.12",
4444
"@stoplight/json-schema-tree": "4.0.0",

plugins/expressive-code/default-titles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default () => {
77
preprocessLanguage: async (context) => {
88
switch (context.codeBlock.language) {
99
case "powershell": {
10-
context.codeBlock.props.title ??= "PowerShel231321l";
10+
context.codeBlock.props.title ??= "PowerShell";
1111
break;
1212
}
1313
default: {

0 commit comments

Comments
 (0)