-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
30 lines (29 loc) · 839 Bytes
/
astro.config.mjs
File metadata and controls
30 lines (29 loc) · 839 Bytes
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
// @ts-check
import { defineConfig } from 'astro/config';
import tailwindcss from '@tailwindcss/vite';
import mdx from '@astrojs/mdx';
import rehypeSlug from 'rehype-slug';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
import sitemap from '@astrojs/sitemap';
export default defineConfig({
site: 'https://beparano.id',
output: 'static',
markdown: {
remarkPlugins: [remarkMath],
rehypePlugins: [
rehypeSlug,
[rehypeAutolinkHeadings, {
behavior: 'append',
properties: { class: 'heading-anchor', ariaHidden: 'true', tabIndex: -1 },
content: { type: 'text', value: '#' },
}],
rehypeKatex,
],
},
vite: {
plugins: [tailwindcss()],
},
integrations: [mdx(), sitemap()],
});