mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
33 lines
686 B
JavaScript
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()],
|
|
},
|
|
});
|