Newer
Older
hello-programmer-world / astro.config.mjs
@h.sakamoto h.sakamoto 21 days ago 577 bytes commit
// @ts-check

import mdx from '@astrojs/mdx';
import preact from '@astrojs/preact';
import expressiveCode from 'astro-expressive-code';
import { defineConfig } from 'astro/config';
import remarkCodeFile from './src/plugins/remarkCodeFile';
import remarkToc from 'remark-toc';

// https://astro.build/config
export default defineConfig({
  integrations: [
    expressiveCode({
      themes: ["github-dark", "github-light"],
    }),
    preact(),
    mdx({
      remarkPlugins: [remarkToc, remarkCodeFile],
    }),
  ],
  markdown: {
    remarkPlugins: [remarkCodeFile],
  }
});