website/astro.config.ts

34 lines
764 B
TypeScript

import { defineConfig } from 'astro/config';
import rehypeKatex from 'rehype-katex';
import remarkMath from 'remark-math';
import remarkEmoji from 'remark-emoji';
import mdx from '@astrojs/mdx';
import remarkRuby from './src/assets/ruby';
import solid from '@astrojs/solid-js';
import markdoc from '@astrojs/markdoc';
// https://astro.build/config
export default defineConfig({
site: 'https://kamoshi.org',
trailingSlash: 'always',
markdown: {
remarkPlugins: [
[(remarkEmoji as any), {accessible: true}],
remarkMath,
remarkRuby,
],
rehypePlugins: [
[rehypeKatex, {output: 'mathml'}]
],
shikiConfig: {
theme: 'min-light'
}
},
integrations: [
mdx(),
solid(),
markdoc(undefined),
],
});