website/astro.config.ts

42 lines
1 KiB
TypeScript
Raw Normal View History

2023-04-07 00:25:47 +02:00
import { defineConfig } from 'astro/config';
2023-10-28 16:58:58 +02:00
import mdx from '@astrojs/mdx';
import solid from '@astrojs/solid-js';
import pagefind from 'astro-pagefind';
import remarkDirective from 'remark-directive';
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
import remarkEmoji from 'remark-emoji';
import remarkBib from './src/utils/remark/bib';
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-12-05 23:25:25 +01:00
devToolbar: {
enabled: true,
},
markdown: {
remarkPlugins: [
2023-06-17 15:37:34 +02:00
remarkDirective,
2023-04-11 02:36:13 +02:00
remarkMath,
2023-11-19 00:11:43 +01:00
[remarkEmoji, { accessible: true }],
[remarkRuby, { sep: ';' }],
2023-10-28 16:58:58 +02:00
remarkBib,
],
rehypePlugins: [
2023-10-28 16:58:58 +02:00
// https://katex.org/docs/options.html
[rehypeKatex, {output: 'mathml'}],
2023-04-08 16:11:36 +02:00
],
shikiConfig: {
theme: 'min-light'
2023-10-28 16:58:58 +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
]
});