Files
T
Agustin GarciaandGitHub 8119e710c2 Add Astro framework support (#3407)
* feat: add Astro framework support

* fix: use official Astro favicon

* fix: address Astro template review feedback

* fix: map Astro search locales for Orama

* fix: make Astro MDX inheritance explicit

* fix: use language subtags for Astro search
2026-07-09 21:36:28 +08:00

42 lines
834 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 { unified } from '@astrojs/markdown-remark';
import {
rehypeCode,
remarkCodeTab,
remarkHeading,
remarkNpm,
remarkStructure,
} from 'fumadocs-core/mdx-plugins';
const remarkPlugins = [
remarkHeading,
remarkCodeTab,
remarkNpm,
[remarkStructure, { exportAs: 'structuredData' }],
];
const rehypePlugins = [rehypeCode];
export default defineConfig({
markdown: {
processor: unified({
syntaxHighlight: false,
remarkPlugins,
rehypePlugins,
}),
},
integrations: [
react(),
mdx({
extendMarkdownConfig: true,
syntaxHighlight: false,
}),
],
vite: {
plugins: [tailwindcss()],
},
});