2023-04-07 00:25:47 +02:00
|
|
|
import { defineConfig } from 'astro/config';
|
2023-04-08 15:44:45 +02:00
|
|
|
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 15:29:07 +02:00
|
|
|
import remarkRuby from './src/utils/ruby';
|
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-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
|
2023-04-08 15:44:45 +02:00
|
|
|
export default defineConfig({
|
2023-04-08 23:29:39 +02:00
|
|
|
site: 'https://kamoshi.org',
|
|
|
|
trailingSlash: 'always',
|
2023-04-08 15:44:45 +02:00
|
|
|
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,
|
2023-04-08 15:44:45 +02:00
|
|
|
],
|
|
|
|
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(),
|
2023-04-26 21:36:34 +02:00
|
|
|
solid(),
|
2023-04-09 01:34:18 +02:00
|
|
|
],
|
2023-04-08 15:44:45 +02:00
|
|
|
});
|