website/astro.config.ts

39 lines
963 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-29 16:46:23 +02:00
import mdx from '@astrojs/mdx';
2023-04-14 21:27:12 +02:00
import solid from '@astrojs/solid-js';
2023-05-04 20:23:39 +02:00
import pagefind from 'astro-pagefind';
2023-06-17 15:37:34 +02:00
import remarkDirective from 'remark-directive';
import remarkBibliography from "./src/utils/remark/bibliography";
import remarkRuby from "./src/utils/remark/ruby";
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',
2023-05-18 20:02:06 +02:00
compressHTML: true,
markdown: {
remarkPlugins: [
2023-06-17 15:37:34 +02:00
remarkDirective,
[remarkRuby, {separator: ';'}],
remarkBibliography,
[remarkEmoji as any, {accessible: true}],
2023-04-11 02:36:13 +02:00
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: [
mdx(),
solid(),
2023-05-04 20:23:39 +02:00
pagefind(),
2023-04-29 21:00:17 +02:00
]
});