mirror of
https://github.com/YouHaveTrouble/youhavetrouble.github.io.git
synced 2026-05-11 22:06:56 +00:00
29 lines
632 B
JavaScript
29 lines
632 B
JavaScript
import { defineConfig } from 'astro/config'
|
|
import mdx from '@astrojs/mdx'
|
|
import remarkGfm from 'remark-gfm'
|
|
import remarkSmartypants from 'remark-smartypants'
|
|
import rehypeExternalLinks from 'rehype-external-links'
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
site: 'https://youhavetrouble.me',
|
|
prefetch: {
|
|
defaultStrategy: 'hover',
|
|
},
|
|
integrations: [mdx()],
|
|
markdown: {
|
|
shikiConfig: {
|
|
theme: 'nord',
|
|
},
|
|
remarkPlugins: [remarkGfm, remarkSmartypants],
|
|
rehypePlugins: [
|
|
[
|
|
rehypeExternalLinks,
|
|
{
|
|
target: '_blank',
|
|
},
|
|
],
|
|
],
|
|
},
|
|
})
|