-
Notifications
You must be signed in to change notification settings - Fork 0
/
svelte.config.js
46 lines (43 loc) · 1 KB
/
svelte.config.js
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
import adapter from "@sveltejs/adapter-static";
import {mdsvex} from "mdsvex";
import relativeImages from "mdsvex-relative-images";
import remarkGfm from "remark-gfm";
import remarkGridTables from "remark-grid-tables";
import remarkToc from "remark-toc";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import rehypeSlug from "rehype-slug-custom-id";
import {sveltePreprocess} from "svelte-preprocess";
/** @type {import("mdsvex").MdsvexOptions} */
const mdsvexConfig = {
remarkPlugins: [
relativeImages,
remarkGfm,
remarkGridTables,
[remarkToc, {
heading: "contents"
}],
],
rehypePlugins: [
rehypeSlug,
rehypeAutolinkHeadings,
]
};
/** @type {import("@sveltejs/kit").Config} */
const config = {
extensions: [".svelte", ".svx"],
preprocess: [
mdsvex(mdsvexConfig),
sveltePreprocess(),
],
kit: {
adapter: adapter({
pages: "build"
}),
alias: {
"components": "src/components",
"content": "src/content",
"parser": "parser/pkg",
},
},
};
export default config;