-
Notifications
You must be signed in to change notification settings - Fork 3
/
astro.config.mjs
54 lines (52 loc) · 1.53 KB
/
astro.config.mjs
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
49
50
51
52
53
54
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import vercel from "@astrojs/vercel/serverless";
import { defineConfig } from "astro/config";
import UnoCss from "unocss/astro";
import yaml from "@rollup/plugin-yaml";
import { pluginCollapsibleSections } from "@expressive-code/plugin-collapsible-sections";
import { pluginLineNumbers } from "@expressive-code/plugin-line-numbers";
import expressiveCode from "astro-expressive-code";
import rehypeExternalLinks from "rehype-external-links";
import remarkMath from "remark-math";
import rehypeMath from "rehype-katex";
import { rehypeAccessibleEmojis } from 'rehype-accessible-emojis';
// https://astro.build/config
export default defineConfig({
site: "https://andka.my.id",
vite: {
plugins: [ yaml() ]
},
markdown: {
remarkPlugins: [ remarkMath ],
rehypePlugins: [
rehypeAccessibleEmojis,
[ rehypeExternalLinks,
{
rel: [ 'external', 'nofollow', 'noopener', 'noreferrer' ],
target: [ "_blank" ]
}
],
rehypeMath
]
},
integrations: [
expressiveCode({
themes: [ "catppuccin-frappe", "catppuccin-latte" ],
plugins: [ pluginCollapsibleSections(), pluginLineNumbers() ],
defaultProps: {
showLineNumbers: true,
wrap: true,
},
}),
mdx(),
sitemap({
changefreq: 'monthly',
'priority': 0.7,
'lastmod': new Date().toISOString().split('T')[ 0 ],
}),
UnoCss({ injectReset: true }),
],
output: "static",
// adapter: vercel()
});