-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
35 lines (35 loc) · 1 KB
/
astro.config.mjs
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 { defineConfig } from 'astro/config';
import AutoImport from 'astro-auto-import';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import rehypeSlug from 'rehype-slug';
import { autolinkConfig } from './pulgins/rehype-autolink-config';
import { astroCodeSnippets, codeSnippetAutoImport } from './integrations/astro-code-snippets';
import react from '@astrojs/react';
import mdx from '@astrojs/mdx';
import siteMap from '@astrojs/sitemap';
// https://astro.build/config
export default defineConfig({
site: 'https://www.utopiajs.space/docs',
integrations: [
AutoImport({
imports: [codeSnippetAutoImport],
}),
astroCodeSnippets(),
react(),
mdx(),
siteMap({
changefreq: 'weekly',
priority: 0.7,
lastmod: new Date()
})
],
redirects: {
'/introduction/index': '/introduction'
},
markdown: {
shikiConfig: {
theme: 'material-theme-palenight',
},
rehypePlugins: [rehypeSlug, [rehypeAutolinkHeadings, autolinkConfig]],
},
});