-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.ts
70 lines (68 loc) · 1.63 KB
/
astro.config.ts
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import { defineConfig } from 'astro/config';
import tailwind from "@astrojs/tailwind";
import remarkLesetid from "remark-lesetid/astro";
import { rehypeTitles, rehypeCodeCopy, rehypePreClass, rehypeTreeSitter, rehypeH1 } from './src/rehype';
import { rehypeHeadingIds } from '@astrojs/markdown-remark';
import { remarkAlert } from 'remark-github-blockquote-alert';
import react from "@astrojs/react";
import arraybuffer from "vite-plugin-arraybuffer";
import mdx from '@astrojs/mdx';
import { remarkMark } from 'remark-mark-highlight'
import rehypeSectionHeadings from "@maxmmyron/rehype-section-headings";
import { remarkCodeMeta } from './src/remark';
// https://astro.build/config
export default defineConfig({
// your configuration options here...
// https://docs.astro.build/en/reference/configuration-reference/
integrations: [
mdx(),
tailwind({
applyBaseStyles: false
}),
react()
],
devToolbar: {
enabled: false
},
output: 'static',
site: "https://ayats.org",
markdown: {
gfm: true,
syntaxHighlight: false,
remarkPlugins: [
remarkMark,
remarkAlert,
remarkLesetid,
remarkCodeMeta
],
rehypePlugins: [
rehypeH1,
rehypeHeadingIds,
rehypeTitles,
rehypeCodeCopy,
rehypePreClass,
rehypeTreeSitter,
[
rehypeSectionHeadings,
{
sectionDataAttribute: "data-heading-id",
}
],
],
},
build: {
format: "file",
},
vite: {
assetsInclude: [
"**/*.node"
],
plugins: [
arraybuffer()
],
ssr: {
external: ["neohome-rs"]
},
},
trailingSlash: "never"
});