summaryrefslogtreecommitdiff
path: root/astro.config.mjs
blob: 58632ab0ba09c94f529799e2f1e49dbd0d30347f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { defineConfig } from 'astro/config';

import sitemap from '@astrojs/sitemap';
import rehypeSlug from 'rehype-slug';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';

export default defineConfig({
  output: 'static',
  site: 'https://matthewkosarek.xyz',
  integrations: [sitemap()],
  markdown: {
    rehypePlugins: [
      rehypeSlug,
      [rehypeAutolinkHeadings, {
        behavior: 'prepend',
        properties: { class: 'heading-anchor', ariaHidden: 'true', tabIndex: -1 },
        content: { type: 'text', value: '#' },
      }],
    ],
    shikiConfig: {
      themes: {
        light: 'github-light',
        dark: 'dracula',
      },
      defaultColor: false,
    },
  },
});