-
Notifications
You must be signed in to change notification settings - Fork 1
/
options.ts
35 lines (33 loc) · 908 Bytes
/
options.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
import remarkGfm from 'remark-gfm';
import remarkFrontmatter from 'remark-frontmatter';
import remarkMdxFrontmatter from 'remark-mdx-frontmatter';
import rehypePrism from 'rehype-prism-plus';
import rehypeSlug from 'rehype-slug';
import { Options } from './services';
import packageJsonFile from './package.json';
const options: Options = {
name: packageJsonFile.name,
repository: packageJsonFile.repository,
license: packageJsonFile.license,
author: packageJsonFile.author,
basePath: '/',
logo: '/vite.svg',
pattern: '**/*.mdx',
cwd: '/docs',
mdxBundlerOptions: {
mdxOptions: {
jsxImportSource: 'preact',
remarkPlugins: [remarkGfm, remarkFrontmatter, remarkMdxFrontmatter],
rehypePlugins: [
[
rehypePrism,
{
defaultLanguage: 'bash',
},
],
rehypeSlug,
],
},
},
};
export default options;