website/astro.config.ts

34 lines
764 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-09 01:34:18 +02:00
import mdx from '@astrojs/mdx';
2023-04-13 20:14:08 +02:00
import remarkRuby from './src/assets/ruby';
2023-04-14 21:27:12 +02:00
import solid from '@astrojs/solid-js';
import markdoc from '@astrojs/markdoc';
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}],
2023-04-11 02:36:13 +02:00
remarkMath,
2023-04-13 20:14:08 +02:00
remarkRuby,
],
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(),
markdoc(undefined),
2023-04-09 01:34:18 +02:00
],
});