website/astro.config.ts

34 lines
713 B
TypeScript
Raw Normal View History

2023-04-07 00:25:47 +02:00
import { defineConfig } from 'astro/config';
import rehypeKatex from 'rehype-katex';
import remarkMath from 'remark-math';
2023-04-08 19:47:34 +02:00
import remarkEmoji from 'remark-emoji';
2023-04-08 23:29:39 +02:00
import svelte from "@astrojs/svelte";
2023-04-09 01:34:18 +02:00
import mdx from '@astrojs/mdx';
import yaml from '@rollup/plugin-yaml';
2023-04-08 23:29:39 +02:00
2023-04-08 00:09:16 +02:00
2023-04-07 00:25:47 +02:00
// https://astro.build/config
export default defineConfig({
2023-04-08 23:29:39 +02:00
site: 'https://kamoshi.org',
trailingSlash: 'always',
markdown: {
remarkPlugins: [
2023-04-08 23:29:39 +02:00
[(remarkEmoji as any), {accessible: true}],
remarkMath
],
rehypePlugins: [
[rehypeKatex, {output: 'mathml'}]
2023-04-08 16:11:36 +02:00
],
shikiConfig: {
theme: 'min-light'
}
2023-04-08 23:29:39 +02:00
},
2023-04-09 01:34:18 +02:00
integrations: [
svelte(),
mdx(),
],
vite: {
plugins: [yaml()]
}
});