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';
|
2023-12-20 23:16:13 +01:00
|
|
|
import svelte from '@astrojs/svelte';
|
2023-10-28 16:58:58 +02:00
|
|
|
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';
|
2024-02-13 01:40:54 +01:00
|
|
|
import rehypeTreesitter from './src/utils/treesitter';
|
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-12-05 23:25:25 +01:00
|
|
|
devToolbar: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
2023-04-08 15:44:45 +02:00
|
|
|
markdown: {
|
2024-02-13 01:40:54 +01:00
|
|
|
syntaxHighlight: false,
|
2023-04-08 15:44:45 +02:00
|
|
|
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,
|
2023-04-08 15:44:45 +02:00
|
|
|
],
|
|
|
|
rehypePlugins: [
|
2023-10-28 16:58:58 +02:00
|
|
|
// https://katex.org/docs/options.html
|
2023-12-21 00:29:52 +01:00
|
|
|
[rehypeKatex, { output: 'mathml' }],
|
2024-02-13 01:40:54 +01:00
|
|
|
rehypeTreesitter,
|
2023-04-08 16:11:36 +02:00
|
|
|
],
|
2023-10-28 16:58:58 +02:00
|
|
|
},
|
2023-04-09 01:34:18 +02:00
|
|
|
integrations: [
|
|
|
|
mdx(),
|
2023-12-20 23:16:13 +01:00
|
|
|
svelte({ compilerOptions: { runes: true } }),
|
2023-05-04 20:23:39 +02:00
|
|
|
pagefind(),
|
2023-04-29 21:00:17 +02:00
|
|
|
]
|
2023-04-08 15:44:45 +02:00
|
|
|
});
|