-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
48 lines (46 loc) · 1.51 KB
/
astro.config.mjs
File metadata and controls
48 lines (46 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import m2dx from 'astro-m2dx';
import sitemap from "@astrojs/sitemap";
import remarkMath from "remark-math";
import remarkDirective from "remark-directive";
import rehypeKatex from "rehype-katex";
import turbolinks from "@astrojs/turbolinks"; // will be deprecated eventually
import image from "@astrojs/image";
import webmanifest from "astro-webmanifest";
import customTheme from './monokai.json';
import remarkCustomMedia from "./plugins/remarkCustomMedia"; // Import the custom plugin
import rehypeStyleFixes from "./plugins/rehypeStyleFixes";
/** @type {import('astro-m2dx').Options} */
import svelte from "@astrojs/svelte";
const m2dxOptions = {
styleDirectives: true
};
// https://astro.build/config
export default defineConfig({
site: "https://mirth.cc",
integrations: [mdx(), sitemap(), turbolinks(), image({
serviceEntryPoint: '@astrojs/image/sharp'
}), webmanifest({
name: 'LUMIRTH - Lukas Unguraitis',
icon: 'src/laumono.svg',
short_name: 'LUMIRTH',
description: '@lumirth\'s corner of the worldwide web.',
start_url: '/',
display: 'standalone',
config: {
insertFaviconLinks: false,
insertAppleTouchLinks: true
}
}), svelte()],
markdown: {
remarkPlugins: [remarkMath, remarkDirective, [m2dx, m2dxOptions], remarkCustomMedia],
rehypePlugins: [[rehypeKatex, {
// Katex plugin options
}], rehypeStyleFixes],
shikiConfig: {
theme: customTheme,
langs: []
}
}
});