This repository has been archived on 2025-09-03. You can view files and clone it, but cannot push or open issues or pull requests.
Files
web-old/astro.config.mjs
2024-02-02 23:03:55 +01:00

28 lines
894 B
JavaScript

import { defineConfig } from 'astro/config';
import minify from 'astro-min';
import metaTags from "astro-meta-tags";
import rehypeSlug from 'rehype-slug';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import remarkDirective from 'remark-directive';
import remarkCalloutDirectives from "@microflash/remark-callout-directives";
import remarkExternalLinks from 'remark-external-links';
import mdx from "@astrojs/mdx";
import lighthouse from "astro-lighthouse";
// https://astro.build/config
export default defineConfig({
integrations: [minify(), metaTags(), mdx(), lighthouse()],
markdown: {
rehypePlugins: [rehypeSlug, [rehypeAutolinkHeadings, {
behavior: 'wrap'
}]],
remarkPlugins: [remarkDirective, remarkCalloutDirectives, [remarkExternalLinks, {
target: '_blank'
}]],
drafts: true,
shikiConfig: {
theme: 'dracula'
}
}
});