Skip to content

Feature/expressive code plugin #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add astro-expressive-code
  • Loading branch information
emeraldjava committed Feb 10, 2025
commit 27b8c25724154231f708906a66b959743a72476e
14 changes: 6 additions & 8 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import remarkCollapse from "remark-collapse";
import sitemap from "@astrojs/sitemap";
import { SITE } from "./src/config";

import expressiveCode from "astro-expressive-code";

// https://astro.build/config
export default defineConfig({
// https://docs.astro.build/en/reference/configuration-reference/#site
Expand All @@ -18,13 +20,9 @@ export default defineConfig({
// https://vitejs.dev/guide/env-and-mode.html#env-files
//base: import.meta.env.DEV ? "." : "/emeraldjava-astro",
//base: import.meta.env.VITE_BASE,
integrations: [
tailwind({
applyBaseStyles: false,
}),
react(),
sitemap(),
],
integrations: [tailwind({
applyBaseStyles: false,
}), react(), sitemap(), expressiveCode()],
image: {
// see https://docs.astro.build/en/reference/errors/missing-sharp/
service: passthroughImageService(),
Expand Down Expand Up @@ -65,4 +63,4 @@ export default defineConfig({
// GitLab Pages requires exposed files to be located in a folder called "public".
// So we're instructing Astro to put the static build output in a folder of that name.
outDir: "./dist",
});
});
Loading