Skip to content

Commit 27b8c25

Browse files
committed
Add astro-expressive-code
1 parent 88529bd commit 27b8c25

File tree

3 files changed

+319
-61
lines changed

3 files changed

+319
-61
lines changed

astro.config.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import remarkCollapse from "remark-collapse";
66
import sitemap from "@astrojs/sitemap";
77
import { SITE } from "./src/config";
88

9+
import expressiveCode from "astro-expressive-code";
10+
911
// https://astro.build/config
1012
export default defineConfig({
1113
// https://docs.astro.build/en/reference/configuration-reference/#site
@@ -18,13 +20,9 @@ export default defineConfig({
1820
// https://vitejs.dev/guide/env-and-mode.html#env-files
1921
//base: import.meta.env.DEV ? "." : "/emeraldjava-astro",
2022
//base: import.meta.env.VITE_BASE,
21-
integrations: [
22-
tailwind({
23-
applyBaseStyles: false,
24-
}),
25-
react(),
26-
sitemap(),
27-
],
23+
integrations: [tailwind({
24+
applyBaseStyles: false,
25+
}), react(), sitemap(), expressiveCode()],
2826
image: {
2927
// see https://docs.astro.build/en/reference/errors/missing-sharp/
3028
service: passthroughImageService(),
@@ -65,4 +63,4 @@ export default defineConfig({
6563
// GitLab Pages requires exposed files to be located in a folder called "public".
6664
// So we're instructing Astro to put the static build output in a folder of that name.
6765
outDir: "./dist",
68-
});
66+
});

0 commit comments

Comments
 (0)