Files
T
2025-11-01 17:33:48 +08:00

33 lines
686 B
JavaScript

// @ts-check
import { defineConfig } from 'astro/config';
import react from '@astrojs/react';
import tailwindcss from '@tailwindcss/vite';
import mdx from '@astrojs/mdx';
import {
rehypeCode,
remarkCodeTab,
remarkHeading,
remarkNpm,
remarkStructure,
} from 'fumadocs-core/mdx-plugins';
export default defineConfig({
integrations: [
react(),
mdx({
extendMarkdownConfig: false,
syntaxHighlight: false,
remarkPlugins: [
remarkHeading,
remarkCodeTab,
remarkNpm,
[remarkStructure, { exportAs: 'structuredData' }],
],
rehypePlugins: [rehypeCode],
}),
],
vite: {
plugins: [tailwindcss()],
},
});