Skip to content

Commit 0c9885f

Browse files
authored
[Docs Site] Add tf & curl aliases for Shiki (#22089)
* [Docs Site] Add tf & curl aliases for Shiki * remove redundant tf alias
1 parent 46c93ef commit 0c9885f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

ec.config.mjs

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// @ts-check
2+
import { defineEcConfig } from "astro-expressive-code";
3+
24
import darkTheme from "solarflare-theme/themes/cloudflare-dark-color-theme.json" with { type: "json" };
35
import lightTheme from "solarflare-theme/themes/cloudflare-light-color-theme.json" with { type: "json" };
46

@@ -8,7 +10,7 @@ import pluginDefaultTitles from "./src/plugins/expressive-code/default-titles.js
810

911
import { pluginCollapsibleSections } from "@expressive-code/plugin-collapsible-sections";
1012

11-
export default {
13+
export default defineEcConfig({
1214
plugins: [
1315
pluginWorkersPlayground(),
1416
pluginOutputFrame(),
@@ -26,4 +28,9 @@ export default {
2628
frames: {
2729
extractFileNameFromCode: false,
2830
},
29-
};
31+
shiki: {
32+
langAlias: {
33+
curl: "sh",
34+
},
35+
},
36+
});

0 commit comments

Comments
 (0)