mirror of
https://github.com/MattTheTekie/MattTheTekie
synced 2024-05-24 04:27:35 +02:00
32 lines
864 B
JavaScript
32 lines
864 B
JavaScript
import { defineConfig } from 'astro/config';
|
|
import mdx from '@astrojs/mdx';
|
|
import sitemap from '@astrojs/sitemap';
|
|
import react from '@astrojs/react';
|
|
import tailwind from '@astrojs/tailwind';
|
|
import remarkMath from 'remark-math';
|
|
import rehypeSlug from 'rehype-slug';
|
|
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
|
|
import rehypeKatex from 'rehype-katex';
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
site: 'https://home.venith.net',
|
|
integrations: [mdx({
|
|
extendMarkdownConfig: true
|
|
}), sitemap(), react(), tailwind()],
|
|
markdown: {
|
|
shikiConfig: {
|
|
theme: 'min-dark',
|
|
wrap: true
|
|
},
|
|
remarkPlugins: [remarkMath],
|
|
rehypePlugins: [rehypeKatex, rehypeSlug, [rehypeAutolinkHeadings, {
|
|
behavior: 'wrap',
|
|
properties: {
|
|
className: ['anchor']
|
|
}
|
|
}]],
|
|
gfm: true
|
|
},
|
|
});
|