Skip to content

Commit

Permalink
Add custom code block and upgrade astro
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTipson committed Jul 6, 2024
1 parent 929d321 commit 11c0a93
Show file tree
Hide file tree
Showing 6 changed files with 3,071 additions and 9,210 deletions.
12 changes: 12 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,23 @@ import { defineConfig } from 'astro/config';
import react from "@astrojs/react";
import mdx from "@astrojs/mdx";
import tailwind from "@astrojs/tailwind";
import AutoImport from 'astro-auto-import';
import MDXCodeBlocks, { mdxCodeBlockAutoImport } from 'astro-mdx-code-blocks';

// https://astro.build/config
export default defineConfig({
integrations: [
react(),
AutoImport({
imports: [
mdxCodeBlockAutoImport('@/components/CodeBlock.astro'),
'@/components/CodeBlock.astro',
{
'@/components/MdMachine.tsx': ['MdMachine']
}
],
}),
MDXCodeBlocks(),
mdx(),
tailwind({
applyBaseStyles: false,
Expand Down
Loading

0 comments on commit 11c0a93

Please sign in to comment.