-
Notifications
You must be signed in to change notification settings - Fork 0
/
velite.config.ts
38 lines (37 loc) · 968 Bytes
/
velite.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
import { defineConfig } from "velite";
import { rehypeAccessibleEmojis } from "rehype-accessible-emojis";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import rehypeCodeTitles from "rehype-code-titles";
import rehypePrettyCode from "rehype-pretty-code";
import rehypeSlug from "rehype-slug";
import remarkGfm from "remark-gfm";
import {
blog,
projects,
careers,
educations,
} from "./config/velite/collections";
import rehypeToc from "@jsdevtools/rehype-toc";
export default defineConfig({
collections: { blog, careers, education: educations, projects },
mdx: {
copyLinkedFiles: false,
rehypePlugins: [
rehypeSlug,
rehypeCodeTitles,
rehypeAccessibleEmojis,
rehypeToc,
rehypePrettyCode,
[
rehypeAutolinkHeadings,
{
properties: {
className: ["anchor"],
},
},
],
],
remarkPlugins: [remarkGfm],
},
root: "./_markdowns",
});