Skip to content

Commit

Permalink
Add expressive code extension
Browse files Browse the repository at this point in the history
  • Loading branch information
bhekanik committed Mar 3, 2024
1 parent 1486529 commit 2066c3b
Show file tree
Hide file tree
Showing 5 changed files with 227 additions and 26 deletions.
27 changes: 17 additions & 10 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import vercel from "@astrojs/vercel/serverless";
import sentry from "@sentry/astro";
import robotsTxt from "astro-robots-txt";
import { defineConfig } from "astro/config";

const isProduction = process.env.NODE_ENV === "production";
import mdx from "@astrojs/mdx"
import sitemap from "@astrojs/sitemap"
import tailwind from "@astrojs/tailwind"
import vercel from "@astrojs/vercel/serverless"
import sentry from "@sentry/astro"
import expressiveCode from "astro-expressive-code"
import robotsTxt from "astro-robots-txt"
import { defineConfig } from "astro/config"
const isProduction = process.env.NODE_ENV === "production"

// https://astro.build/config
export default defineConfig({
Expand All @@ -16,6 +16,13 @@ export default defineConfig({
integrations: [
sitemap(),
robotsTxt(),
expressiveCode({
themes: ["one-dark-pro"],
defaultProps: {
// Enable word wrap by default
wrap: true,
},
}),
mdx(),
sentry({
dsn: "https://c8fc23d45a17004cddf52ecfee998bf2@o1115887.ingest.sentry.io/4506532148936704",
Expand All @@ -29,4 +36,4 @@ export default defineConfig({
}),
tailwind(),
],
});
})
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"@sentry/astro": "^7.102.1",
"astro": "^4.4.5",
"astro-embed": "^0.6.1",
"astro-expressive-code": "^0.33.4",
"astro-og-canvas": "^0.4.2",
"astro-robots-txt": "^1.0.0",
"canvaskit-wasm": "^0.39.1",
Expand Down
193 changes: 193 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2066c3b

Please sign in to comment.