-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
velite.config.ts
36 lines (34 loc) · 1.44 KB
/
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
import { rehypeAccessibleEmojis } from 'rehype-accessible-emojis';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import rehypeSlug from 'rehype-slug';
import smartypants from 'remark-smartypants';
import remarkSqueezeParagraphs from 'remark-squeeze-paragraphs';
import remarkUnwrapImages from 'remark-unwrap-images';
import { defineConfig } from 'velite';
import { blogs } from './config/velite/collections/blog';
import { extensions } from './config/velite/collections/extensions';
import { gaming } from './config/velite/collections/gaming';
import { hardware } from './config/velite/collections/hardware';
import { projects } from './config/velite/collections/projects';
import { software } from './config/velite/collections/software';
import imageBlurMetadata from './config/velite/rehype/blur';
import { prettyCode } from './config/velite/rehype/code';
import unwrapFigure from './config/velite/rehype/figure';
import { toc } from './config/velite/rehype/toc';
export default defineConfig({
collections: { blogs, extensions, gaming, hardware, software, projects },
mdx: {
copyLinkedFiles: false,
remarkPlugins: [smartypants, remarkUnwrapImages, remarkSqueezeParagraphs],
rehypePlugins: [
unwrapFigure,
imageBlurMetadata,
rehypeSlug,
rehypeAccessibleEmojis,
// @ts-expect-error idk
prettyCode,
[rehypeAutolinkHeadings, { properties: { className: ['anchor'] } }],
toc,
],
},
});