-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathastro.config.mjs
More file actions
26 lines (24 loc) · 858 Bytes
/
astro.config.mjs
File metadata and controls
26 lines (24 loc) · 858 Bytes
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
import { defineConfig } from 'astro/config';
import react from '@astrojs/react';
import tailwind from '@astrojs/tailwind';
import mdx from '@astrojs/mdx';
import rehypePrettyCode from 'rehype-pretty-code';
import rehypeSlug from 'rehype-slug';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import { prettyCodeOptions } from './plugins/rehype-pretty-code-config';
import { rehypeAutolinkHeadingsOptions } from './plugins/rehype-autolink-headings-config';
const markdownConfig = {
rehypePlugins: [
rehypeSlug,
[rehypeAutolinkHeadings, rehypeAutolinkHeadingsOptions],
[rehypePrettyCode, prettyCodeOptions],
],
syntaxHighlight: false,
};
// https://astro.build/config
export default defineConfig({
site: 'https://ifpb.github.io',
base: '/lm',
markdown: markdownConfig,
integrations: [react(), tailwind(), mdx()],
});