2024-11-21 23:42:48 +00:00
|
|
|
// @ts-check
|
2024-11-29 16:58:26 +00:00
|
|
|
import { rehypeHeadingIds } from '@astrojs/markdown-remark'
|
2024-11-21 23:42:48 +00:00
|
|
|
import mdx from '@astrojs/mdx'
|
|
|
|
import sitemap from '@astrojs/sitemap'
|
2024-11-29 16:58:26 +00:00
|
|
|
import svelte from '@astrojs/svelte'
|
|
|
|
import { defineConfig } from 'astro/config'
|
|
|
|
import rehypeAutolinkHeadings from 'rehype-autolink-headings'
|
|
|
|
import Icons from 'unplugin-icons/vite'
|
2024-11-21 23:42:48 +00:00
|
|
|
import { remarkReadingTime } from './readingTime'
|
|
|
|
|
|
|
|
// https://astro.build/config
|
|
|
|
export default defineConfig({
|
|
|
|
site: 'https://example.com',
|
2024-11-22 00:19:50 +00:00
|
|
|
integrations: [mdx(), sitemap(), svelte()],
|
2024-11-21 23:42:48 +00:00
|
|
|
markdown: {
|
2024-11-29 16:58:26 +00:00
|
|
|
rehypePlugins: [rehypeHeadingIds, [rehypeAutolinkHeadings, { behavior: 'wrap' }]],
|
2024-11-21 23:42:48 +00:00
|
|
|
remarkPlugins: [remarkReadingTime],
|
|
|
|
},
|
2024-11-29 16:58:26 +00:00
|
|
|
vite: {
|
|
|
|
plugins: [Icons({ compiler: 'astro' })],
|
|
|
|
},
|
|
|
|
})
|