blog.z0x.ca/astro.config.mjs
2024-09-10 10:08:41 -07:00

25 lines
900 B
JavaScript

import tailwind from "@astrojs/tailwind";
import { defineConfig } from "astro/config";
import { rehypeHeadingIds } from "@astrojs/markdown-remark";
import remarkToc from "remark-toc";
import { rehypeAccessibleEmojis } from "rehype-accessible-emojis";
import rehypeKatex from "rehype-katex";
import remarkMath from "remark-math";
import remarkEmoji from 'remark-emoji';
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import pagefind from "astro-pagefind";
// https://astro.build/config
export default defineConfig({
site: "https://astro-micro-academic.vercel.app",
integrations: [tailwind(), sitemap(), mdx(), pagefind()],
markdown: {
shikiConfig: {
theme: "css-variables",
},
rehypePlugins: [rehypeHeadingIds, rehypeAccessibleEmojis, rehypeKatex],
remarkPlugins: [remarkToc, remarkMath, remarkEmoji],
},
server: { port: 1234, host: true}
});